create image from string error
Posted: Mon Jul 25, 2005 7:59 pm
I'm trying to create a simple image from an e-mail address, therefore eliminating the possibility of spybots gathering the address.
this is what i have:
email.gif is just a white box suitable for an e-mail address
I also have the header set as this:
I have tried including it in the PHP script and it makes no difference.
However, here's my problem. When I check the PHP page, this is the error I get. It's not really even an error.
this is what i have:
Code: Select all
$string = 'test';
$im = imagecreatefromgif("images/email.gif");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagegif($im);
imagedestroy($im);I also have the header set as this:
Code: Select all
<meta Content-type='image/gif'>However, here's my problem. When I check the PHP page, this is the error I get. It's not really even an error.
Code: Select all
GIF89a† €ÜÒ<ÿÿÿ!ù,† ,Œ