note 55913 added to function.imagecreate
| From: | mpo at elko dot pl | Date: | Wed, 17 Aug 2005 14:22:43 +0000 |
| Subject: | note 55913 added to function.imagecreate | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-93793@lists.php.net to get a copy of this message | ||
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.
----
Manual Page -- http://www.php.net/manual/en/function.imagecreate.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+55913
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55913&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55913&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55913&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55913&report=yes&reason=useless
Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55913&report=yes&reason=non-english
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55913&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+55913&report=yes
Search -- http://master.php.net/manage/user-notes.php