01-26-2008, 07:59 PM
|
#2 (permalink)
|
|
The Frequenter
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
|
I seriously do not know a lot of GD Libary. I know from experience that Dale is the meistro when it comes down to GD. (Rendair is his nick on the forum)
Simply debuggin this as I go so bare with me.
Ehm lol, on second notice, when you engage a header(), you can never and I mean NEVER have a output before the header(). I believe this is what you got from php.net;
PHP Code:
<?php // create a 100*30 image $im = imagecreate(100, 30);
// white background and blue text $bg = imagecolorallocate($im, 255, 255, 255); $textcolor = imagecolorallocate($im, 0, 0, 255);
// write the string at the top left imagestring($im, 5, 0, 0, "Hello world!", $textcolor);
// output the image header("Content-type: image/png"); imagepng($im); ?>
The one up here is perfect, and it should work.
:: edit ::
Oh yeah, instead of
$sring I should try $string. 
PHP Code:
imagejpeg($im, $sring);
=>
PHP Code:
imagejpeg($im, $string);
__________________
"Life is a bitch, take that bitch on a ride"
|
|
|