I've got this fairly simply script:

<?php
  // create a 100*30 image
  $im = imagecreate( 100, 100 );

  // 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/jpg");
  imagejpeg($im);
?>

However, when I run it, I get an error:

Fatal error: Call to undefined function: imagecreate() in [file name] on line 3

I am running under MacOSX 10.3.2 and PHP 4.3.2.

Is there anything I should look for in the phpinfo()?
Any suggestions on how to fix the problem?

Thank you.

--
== Eric Gorr ========= http://www.ericgorr.net ========= ICQ:9293199 ===
"Therefore the considerations of the intelligent always include both
benefit and harm." - Sun Tzu
== Insults, like violence, are the last refuge of the incompetent... ===

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php



Reply via email to