Page 1 of 1

PHP EXTENSIONS!!! HELP ME

Posted: Fri May 24, 2002 3:04 am
by Chillwabbitt
:evil: 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.

Can someone please help
Thanx a stackz

Posted: Fri May 24, 2002 3:10 am
by Benjamin
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.

Posted: Fri May 24, 2002 3:13 am
by Benjamin
MSG: "Cannot load extention c:\php\entensions/php_gd.dll" same with all the others.
Also it looks likes you have a forward slash where there should be a backslash...

$)#(#* Extentions

Posted: Mon May 27, 2002 3:22 am
by Chillwabbitt
[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.

Got any other suggestions
:evil:

Posted: Mon May 27, 2002 3:30 am
by Benjamin
Yes in the php.ini file you will see this...
;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.

Hope that helps.

extensions not found

Posted: Mon May 27, 2002 3:37 am
by lordzoster
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?

Extensions

Posted: Mon May 27, 2002 3:44 am
by Chillwabbitt
I installed it manually

Extensions

Posted: Mon May 27, 2002 3:56 am
by Chillwabbitt
I have unmarked all the extensions I want to use and still nudda

Thanx though
:(

Posted: Mon May 27, 2002 4:01 am
by Benjamin
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.

Posted: Mon May 27, 2002 5:08 am
by Chillwabbitt
This is what I get

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

extensions not found

Posted: Mon May 27, 2002 5:10 am
by lordzoster
tried everything.

Even using "%SYSTEMROOT%" and similar as url.

I've seen other 15 or 16 users with the same issue.

extensions not found

Posted: Mon May 27, 2002 5:16 am
by lordzoster
Quite mine.

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

Posted: Mon May 27, 2002 9:59 am
by mikeq
In my php.ini I have this

extension_dir = c:\php4\extensions


and it works fine, do not put a \ at the end.

Mike

extensions not found

Posted: Mon May 27, 2002 5:16 pm
by lordzoster
tried.
never happen. :evil: