Method 1:
create a new page, copy the text below and save it as image.php (or whatever you wish)
All you'll need to display on other pages is the code below.
< ? 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 $_SERVER[REMOTE_ADDR]";
Imagestring($img_number,10,5,5,$number,$textcolor);
header("Content-type: image/jpeg");
imagejpeg($img_number);
? >
Method 2:
You can use the gadgets
it is free, please make sure to use the complete code.
or use can use
Danasoft gadets.
.
you can see my orkut profile for Demo
http://www.orkut.co.in/Main#Profile?uid=4980250996369346869
0 comments:
Post a Comment