01-26-2008, 08:46 PM
|
#3 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
|
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($image, 255, 0, 0); $string = imagestring($image, 5, 0, 0, "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?
|
|
|