I am trying to get php_gd.dll working with IIS4.0 running on Windows NT Server 4.0 But I am pretty sure it is not working, regardless of what I do. I am pretty sure it is a configuration erro but I can't find sufficient docs for php_gd + IIS4. Can any one out here help me?
PHP.ini (pertainent parts)
extension_dir =
e:/inetpub/wwwroot/php_extensions/
enable_dl = On
extension=php_gd.dll
Test File:
<?php
header ("Content-type: image/png");
$im = @ImageCreate (50, 100);
$background_color = ImageColorAllocate ($im, 255, 255, 255);
$text_color = ImageColorAllocate ($im, 233, 14, 91);
ImageString ($im, 1, 5, 5, "A Simple Text String", $text_color);
ImagePng ($im);
?>
What happens.
Warning window on server:
Unable to load dynamic library 'e:/inetpub/wwwroot/php_extensions/php_gd.dll' The specified procedure could not be found.
HTML Output.
X-Powered-By: PHP/4.0.3pl1 Content-type: image/png
Fatal error: Call to undefined function: imagecreate() in e:/inetpub/wwwroot/courseshare/php_version/Test.php on line 3
PHP Warning: Unable to load dynamic library 'e:/inetpub/wwwroot/php_extensions/php_gd.dll' - The specified procedure could not be found. in Unknown on line 0 PHP Fatal error: Call to undefined function: imagecreate() in e:/inetpub/wwwroot/courseshare/php_version/Test.php on line 3