<?php
$ip = $_SERVER['REMOTE_ADDR'];
$my_img = imagecreate( 250, 18 );
$background = imagecolorallocate( $my_img, 35, 35, 35ini
$text_colour = imagecolorallocate( $my_img, 255, 255, 0 );
$line_colour = imagecolorallocate( $my_img, 128, 255, 0 );
imagestring( $my_img, 4, 5, 1, "Your IP Is: $ip",
$text_colour );
imagesetthickness ( $my_img, 7 );
header( "Content-type: image/png" );
imagepng( $my_img );
imagecolordeallocate( $line_color );
imagecolordeallocate( $text_color );
imagecolordeallocate( $background );
imagedestroy( $my_img );
?>