View Single Post
Old 01-26-2008, 08:46 PM   #3 (permalink)
Aaron
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default

I saved over my old version before I saw your edit, I will check that out later. Right now I am having another issue, and I don't understand waht it could be.
PHP Code:

<?php
$src_image 
"logo.gif";
$image imagecreatefromgif($src_image);
$textcolor imagecolorallocate($image25500);
$string imagestring($image500"Hello world!"$textcolor);
header("Content-type: image/gif");
imagegif ($image$string);
?>
It just displays a URL, and everything works fine if I get rid of $string in the code, but with it, it displays a URL.

Why is it that line 5 will change the image even when it is stored in a variable? Do certain functions in PHP do something when they are stored?
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote