note 55913 deleted from function.imagecreate by victor
| From: | victor@php.net | Date: | Wed, 17 Aug 2005 16:03:25 +0000 |
| Subject: | note 55913 deleted from function.imagecreate by victor | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-93797@lists.php.net to get a copy of this message | ||
Note Submitter: mpo at elko dot pl
----
Regarding: Fatal error: Call to undefined function imagecreate() error.
I managed to solve the above problem with php_gd2.dll (or php_gd.dll) library which wasn't
loaded by php when using images related functions.
Basically the "phpinfo()" was showing the wrong "extension_dir". It would
instantly give "c:\php4" even though it was set in php.ini to use
"c:\php\extensions". Even if you tried to put libraries to either "\php4\" or
"ph4\extensions\" it wouldn't work.
The problem was with default php.ini and its line:
windows: "\path1;\path2"
After converting it into:
windows = "\path1;\path2" it worked for me.
(for example
windows = "c:\windows")
That, in my case solved all the problems. As I couldn't find solution to this issue on the
internet, decided to put it on forum just in case there're people struggling with it).
cheers
Mateusz
PS make sure you edit the right php.ini (ie the one that is read by php). I've put mine into
PHP dir.