note 55776 deleted from function.imagecreate by mazzanet

From: Date: Sat, 13 Aug 2005 08:52:08 +0000
Subject: note 55776 deleted from function.imagecreate by mazzanet
References: 1  Groups: php.notes 
Request: Send a blank email to php-notes+get-93542@lists.php.net to get a copy of this message
Note Submitter: mpo at NOSPAM dot elko dot pl ---- 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.

« previous php.notes (#93542) next »