PX : code

Visitor IP in Graphic by Mike
Download this code


<?php
$img_number 
imagecreate(275,25);
$backcolor imagecolorallocate($img_number,102,102,153);
$textcolor imagecolorallocate($img_number,255,255,255);

imagefill($img_number,0,0,$backcolor);
$number " Your IP is $REMOTE_ADDR";

Imagestring($img_number,10,5,5,$number,$textcolor);

header("Content-type: image/jpeg");
imagejpeg($img_number);
?>

Comments or questions?
PX is running PHP 5.2.17
Thanks to Miranda Productions for hosting and bandwidth.
Use of any code from PX is at your own risk.