greetings -
sorry to post this - but I have searched high and low and can't find any info related to this specifically.
I have downloaded php_gd.dll supposedly compiled for PHP4.0.4.
I am running PHP 4.0.4.pl1
I have copied the module to the ./extensions directory and changed the extensions_dir directive in the php.ini file to point to that directory.
I have un-commented the extension=php_gd.dll directive.
If I issue php -m I get the following:
Running PHP 4.0.4pl1
Zend Engine v1.0.4, Copyright (c) 1998-2000 Zend Technologies
[PHP Modules]
gd
standard
bcmath
Calendar
com
ftp
mysql
odbc
pcre
session
xml
wddx
[Zend Modules]
So it looks like the module has loaded fine...no error messages when php starts.
However...when I try to run a script that calls any of these functions, I get an error saying something like:
<br>
<b>Fatal error</b>: Call to undefined function: imagecreatefromgif() in <b>gddemo.php</b> on line <b>4</b><br>
Here's the code for the php script I was tring to execute:
<?php
Header("Content-type: image/gif");
$string=implode($argv," ");
$im = imagecreatefromgif
("images/button1.gif");
$orange = ImageColorAllocate($im, 220, 210, 60);
$px = (imagesx($im)-7.5*strlen($string))/2;
ImageString($im,3,$px,9,$string,$orange);
ImageGif($im);
ImageDestroy($im);
?>
any ideas? anyone? help!
Mark.