01-26-2008, 07:53 PM
|
#1 (permalink)
|
|
The Frequenter
Join Date: Dec 2007
Location: In my basement
Posts: 386
Thanks: 47
|
GD library... Oh god the errors...
PHP Code:
<html>
<head>
<title>Using the GD Library</title>
</head>
<body bgcolor="Gray">
<?php
$im = imagecreate(110, 20);
$white = imagecolorallocate($im, 255, 255, 255);
$string = imagestring($im, 1, 5, 5, "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.
|
|
|