PHP EXTENSIONS!!! HELP ME

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!

Moderator: General Moderators

Post Reply
Chillwabbitt
Forum Newbie
Posts: 8
Joined: Fri May 24, 2002 3:04 am

PHP EXTENSIONS!!! HELP ME

Post 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
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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.
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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...
Chillwabbitt
Forum Newbie
Posts: 8
Joined: Fri May 24, 2002 3:04 am

$)#(#* Extentions

Post 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:
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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.
lordzoster
Forum Newbie
Posts: 7
Joined: Mon May 27, 2002 3:29 am

extensions not found

Post 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?
Chillwabbitt
Forum Newbie
Posts: 8
Joined: Fri May 24, 2002 3:04 am

Extensions

Post by Chillwabbitt »

I installed it manually
Chillwabbitt
Forum Newbie
Posts: 8
Joined: Fri May 24, 2002 3:04 am

Extensions

Post by Chillwabbitt »

I have unmarked all the extensions I want to use and still nudda

Thanx though
:(
User avatar
Benjamin
Site Administrator
Posts: 6935
Joined: Sun May 19, 2002 10:24 pm

Post 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.
Chillwabbitt
Forum Newbie
Posts: 8
Joined: Fri May 24, 2002 3:04 am

Post 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
lordzoster
Forum Newbie
Posts: 7
Joined: Mon May 27, 2002 3:29 am

extensions not found

Post by lordzoster »

tried everything.

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

I've seen other 15 or 16 users with the same issue.
lordzoster
Forum Newbie
Posts: 7
Joined: Mon May 27, 2002 3:29 am

extensions not found

Post 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
User avatar
mikeq
Forum Regular
Posts: 512
Joined: Fri May 03, 2002 3:33 am
Location: Edinburgh, Scotland

Post 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
lordzoster
Forum Newbie
Posts: 7
Joined: Mon May 27, 2002 3:29 am

extensions not found

Post by lordzoster »

tried.
never happen. :evil:
Post Reply