[PHP] ISP Blues

2003-03-26 Thread Anthony Ritter
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.;
?




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



Re: [PHP] ISP Blues

2003-03-26 Thread Marek Kilimajer
Try executing
dl('php_gd.dll');
first (before calling any gd functions),
also check the output of phpinfo() if they have gd enabled
Anthony Ritter wrote:

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.;
?


 



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


Re: [PHP] ISP Blues

2003-03-26 Thread Anthony Ritter
Marek,
For testing purposes, on my home computer with php 4.1.1 and Apache Server,
the script works fine.

Now, I'd like the script to work on my ISP's server which hosts my site.

They use MS IIS.

What are the correct steps for them to install the php_gd.dll file on their
server since that same script is causing an error when published to the web.

Many thanks,
Tony Ritter


1.


2.


3.

etc...

---
[This E-mail scanned for viruses by gonefishingguideservice.com]


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