View Single Post
Old 01-26-2008, 07:53 PM   #1 (permalink)
Aaron
The Frequenter
 
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
Aaron is on a distinguished road
Default GD library... Oh god the errors...

PHP Code:
<html>
<head>
<title>Using the GD Library</title>
</head>
<body bgcolor="Gray">
<?php
$im 
imagecreate(11020);
$white imagecolorallocate($im255255255);
$string imagestring($im155,  "Hello world"$white);

header("Content-type: image/png");
    
imagejpeg($im$sring);
    
imagedestroy($im);
?>
</body>
</html>
Good luck helping me debug this :/
It creates an image with the following error:
Parse error: parse error, unexpected T_STRING in C:\wamp\www\Lessons\GD\GD, The basics.php on line 9

Line 9 is the one with hello world, hello world is the string.
Send a message via MSN to Aaron
Aaron is offline  
Reply With Quote