View Single Post
Old 01-26-2008, 07:59 PM   #2 (permalink)
ReSpawN
The Frequenter
 
ReSpawN's Avatar
 
Join Date: Nov 2007
Location: Netherlands
Posts: 460
Thanks: 49
ReSpawN is on a distinguished road
Default

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(10030);

// white background and blue text
$bg imagecolorallocate($im255255255);
$textcolor imagecolorallocate($im00255);

// write the string at the top left
imagestring($im500"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"
Send a message via MSN to ReSpawN
ReSpawN is offline  
Reply With Quote
The Following User Says Thank You to ReSpawN For This Useful Post:
Aaron (01-26-2008)