ISP Blues
| From: | Anthony Ritter | Date: | Wed, 26 Mar 2003 21:20:48 +0000 |
| Subject: | ISP Blues | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-141122@lists.php.net to get a copy of this message | ||
The following script works fine when I test it at home using localhost on:
MS Win 98
Apache Server
PHP 4.1.1
php_gd.dll
I then publish the script to my web at my ISP's MS IIS server which is the
host and get an undefined function call of:
ImageCreate()
The ISP has said that they have installed php_gd.dll on their server but I
get that error.
I have run php scripts on this site _without_ the gd libraries.
Could somebody please advise how they should be installing the .dll file so
I can utlize the gd_libraries with php?
Many thanks,
Tony Ritter
..............................................................
The script...
<?
$new_w=50;
$new_h=50;
header("Content-type: image/png");
header("Content-type: text/html");
$dst_img=ImageCreate($new_w,$new_h);
$src_img=ImageCreateFromPng("./square.png");
ImageCopyResized($dst_img,$src_img,0,0,0,0,$new_w,$new_h,ImageSX($src_img),I
mageSY($src_img));
ImagePng($dst_img);
echo "This is a square.";
?>