Have you tried dynamically loading the GD functions;
http://us2.php.net/manual/en/function.dl.php
if (!extension_loaded('php_gd')) {
if (strtoupper(substr(PHP_OS, 0, 3) == 'WIN')) {
dl('php_gd.dll');
} else {
dl('gd.so');
}
}
not sure all the names above are correct and you can eliminate a lot of
stuff for Win/Linux installations if you are not targeting both versions.
Warren Vail
-----Original Message-----
From: Richard Davey [mailto:[EMAIL PROTECTED]
Sent: Friday, February 13, 2004 8:07 AM
To: Eric
Cc: [EMAIL PROTECTED]
Subject: Re: [PHP] imagecreate undefined...?
Hello Eric,
Friday, February 13, 2004, 4:00:02 PM, you wrote:
E> Fatal error: Call to undefined function: imagecreate() in [file name] on
line 3
E> I am running under MacOSX 10.3.2 and PHP 4.3.2.
Sounds very much like you have PHP without the image library compiled
into it. I don't know where to obtain that lib for the Mac, sorry -
but I'm sure someone will.
--
Best regards,
Richard mailto:[EMAIL PROTECTED]
http://www.phpcommunity.org/wiki/296.html
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php