OK, I have the latest stable version of PHP and from php.net it says:
Note: Since PHP 4.3 there is a bundled version of the GD lib. This bundled version has some additional features like alpha blending, and should be used in preference to the external library since it's codebase is better maintained and more stable.
yet, I cant seem to get the example on here:
http://us2.php.net/manual/en/ref.image.php
to work... mozilla spits this error out:
The image โhttp://localhost/chatterbox.php?image&text=textโ cannot be displayed, because it contains errors.
and when I view the source of the page I get this:
Fatal error: Call to undefined function: imagecreatefrompng() in bahhhshhshshhsh\chatterbox.php on line 15
this is my code:
header("Content-type: image/png");
$string = $_GET['text'];
$im = imagecreatefrompng("images/serious hazard.png");
$orange = imagecolorallocate($im, 220, 210, 60);
$px = (imagesx($im) - 7.5 * strlen($string)) / 2;
imagestring($im, 3, $px, 9, $string, $orange);
imagepng($im);
imagedestroy($im);
and it doesnt show anything if I use the img tag in html either.
any help on why this is happening?
I have php version 4.3.2 on windows XP pro.