Marc Boncz wrote:
03232008 1415 GMT-6
Thanks for that code Marc. Before I saw your post I found another script
so I tried that one and two others and none of them are working. It must
be that I do not understand how to use them.
<?php
ini_set('display_errors', 1);
error_reporting(E_ALL);
header("Content-Type:image/png");
$img_handle = imagecreatefrompng("bannerboy.png");
$color = imagecolorallocate($img_handle, 100, 100, 100);
$ip = $_SERVER("REMOTE_ADDR");
imagestring($img_handle, 3, 10, 9, "Wade's IP: $ip", $color);
imagepng($img_handle);
imagedestroy($img_handle);
?>
and titled it ip-addr.php
and then on another page I called it
<img src="ip-addr.php" />
but I have no image and show no errors.
Wade