Click to See Complete Forum and Search --> : extensions_dir not working in W2K


Anon
04-25-2001, 04:56 PM
Hi,
I'm having trouble getting the extensions_dir directive to work. It seems that no matter what I put for that directive, ie:

extension_dir=C:\PHP\extensions\;

and I uncomment any of the extensions that come with this distribution, I get errors.

I'm trying to use the sablotron functions.

I make the extensions_dir as I stated above, and I uncomment the line:

extension=php_sablot.dll

and I make sure the php_sablot.dll and sablot.dll are both actually in C:\PHP\extensions

When I run a script that calles phpinfo();

THe page loads, but I get an error that states:

Warning
Unable to load dynamic library 'c:\PHP\extensions\php_sablot.dll' - The specified module could not be found.

What am I doing wrong? I've tried this with several extensions that come with the 4.0.4pl download for Win32.

If it helps, I'm running W2k with IIS, and I'm running PHP as a CGI, not an ISAPI filter.

Any ideas?

Thanks in advance...

Barry...

gfvarone
04-26-2001, 04:51 AM
First...sorry for my english.

'bout your prob...
Be sure you have extension folder the dll you want to load.
So correct the php.ini in this mode:

extension_dir=C:/PHP/extensions/

(not C:\PHP\extensions\)

Try this...bye
GfVarone [IT]

sanand158
04-26-2001, 08:26 AM
Did you download your PHP distribution from php.net?

If you did, I suggest you uninstall PHP altogether. Visit http://php.weblogs.com./easywindows. On this site you will the PHP distribution with a windows installer. The install program creates the php.ini file with options specific to your setup.

Hope this helps.

Anon
04-26-2001, 10:35 AM
Tried it that way too... no luck

Doesn't seem to matter which way the slashes are pointing...

B.

Anon
04-26-2001, 05:39 PM
Very strange...

I got it to work, but what I had to do was disassociate IIS from the installed version, installed the version from weblogs, and then reassociate IIS with the OLD executable to be able to be able to get it to work with my XML apps... The version from weblogs is 4.0.4 but the version I need is 4.0.4pl...

It looks like that installer does something to IIS (registry entry maybe?) that makes it really be able to see the extensions dir...

B.



Sudhir Anand wrote:
-------------------------------
Did you download your PHP distribution from php.net?

If you did, I suggest you uninstall PHP altogether. Visit http://php.weblogs.com./easywindows. On this site you will the PHP distribution with a windows installer. The install program creates the php.ini file with options specific to your setup.

Hope this helps.