RE: [PHP] imagecreate undefined...?

From: Date: Fri, 13 Feb 2004 19:50:49 +0000
Subject: RE: [PHP] imagecreate undefined...?
Groups: php.general 
Request: Send a blank email to php-general+get-177635@lists.php.net to get a copy of this message
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:rich@launchcode.co.uk] Sent: Friday, February 13, 2004 8:07 AM To: Eric Cc: php-general@lists.php.net 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:rich@launchcode.co.uk http://www.phpcommunity.org/wiki/296.html -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

« previous php.general (#177635) next »