note 55776 added to function.imagecreate

From: Date: Fri, 12 Aug 2005 19:20:30 +0000
Subject: note 55776 added to function.imagecreate
Groups: php.notes 
Request: Send a blank email to php-notes+get-93522@lists.php.net to get a copy of this message
Regarding: 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" which should be windows = "\path1;\path2" (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+55776 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+55776&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+55776&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+55776&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+55776&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+55776&report=yes&reason=non-english Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+55776&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+55776&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#93522) next »