PHP programming forum. Ask questions or help people concerning PHP code. Don't understand a function? Need help implementing a class? Don't understand a class? Here is where to ask. Remember to do your homework!
I am running PHP4 on W2K with IIS the installation is working great however I cannot get the damn extensions to load.....
I have set the php.ini file so that it reads C:\php\extensions but when I try load any of the dll's I get this error MSG: "Cannot load extention c:\php\entensions/php_gd.dll" same with all the others.
Make sure that you php.ini file is in the windows system directory, and make sure that the .dll files are either in a windows system directory, or in the same folder as the php executable your using.
[b]This is an extraction of my php.ini[/b]
[i]; Directory in which the loadable extensions (modules) reside.
extension_dir = "c:\php\extensions\"[/i]
if I leave the extension _dir as is it finds the folder but not the .dll
however if I leave the "\" out after extensions the it tells me the same thing but with a forward slash before whatever.dll
I have tried placing all the .dlls im my %systemroot% but to no avail I have also tried to place them all in the root folder of my php.exe but no avail.
;Windows Extensions
;Note that MySQL and ODBC support is now built in, so no dll is needed for it.
;
;extension=php_bz2.dll
;extension=php_ctype.dll
;extension=php_cpdf.dll
;extension=php_curl.dll
Before each extension is a ;
Remove the ; from the extensions you wish to load.
no, it doesnt' help... :(
i have the same problem, and it seems really widespread in the php'ers community.
I'm sure we share the same problem and did all passages right:
-extension_dir the same in our system
-checked / or \ or | or _ or @#! ;)
-uncommented extension list
-copyed extensions in every directory of the disk (I DID!!!!)
For Chillwabbitt
Incidentally, how did you installed PHP in the system?
Did you use an installshield version (i mean, the win PHP distribution with Setup.exe) and then added the extensions you found in the full distribution? Or did you directly used this one?
Another thing is that the variable extension_dir might have to be a relative path, so maybe try
extension_dir = \extenstions
or
extension_dir = ..\extensions
instead of
extension_dir = "c:\php\extensions
If that still doesn't fix it then Turn on error logging if it's off, and then read the error log. More information should be available in there, and then post it in here.
X-Powered-By: PHP/4.1.1 Content-Type: image/gif PHP Warning: Unable to load dynamic library 'c:\php\extensions/php_gd.dll' - The specified procedure could not be found. in Unknown on line 0 PHP Fatal error: Call to undefined function: imagecreate() in c:\inetpub\wwwroot\tests\image.html on line 3
PHP Warning: Unable to load dynamic library 'c:\php\extensions/php_gd2.dll' - Impossibile trovare la procedura specificata [impossible to find the specified procedure]. in Unknown on line 0