Image maniupulation with php. Help!
Posted: Sat Sep 05, 2009 5:06 am
I'm trying to get my ip to display ontop of this image but I'm getting a multitude of errors.
The errors are
Code: Select all
<?
header(”Content-type: image/png”);
$im = imagecreatefrompng (”yourip.png”);
$colour = imagecolorallocate($im, 255, 255, 255);
$ip = “$_SERVER[REMOTE_ADDR]“;
imagestring($im, 3, 71, 2, $ip, $colour);
imagepng($im);
?>
Code: Select all
Use of undefined constant ”yourip - assumed '”yourip'
Use of undefined constant png” - assumed 'png”'
and
Warning</b>: imagecreatefromjpeg(”yourippng