Page 1 of 1

PHP extensions - how?

PostPosted: 28. December 2005 14:02
by midiwhale
I have a "DLL" file which I'm told to install in my PHP "Extensions" folder and then to edit php.ini to add "extension=my.dll" in the Extensions section of you php.ini file

What is the Xampp equivalent of these two steps?

Apologies for such a newbie question.

PostPosted: 28. December 2005 14:05
by Wiedmann
What is the Xampp equivalent of these two steps?

In XAMPP there is no differnce to these steps (because it's a normal PHP installation).

PostPosted: 28. December 2005 16:36
by midiwhale
OK sorry, I was looking in the wrong level in the XAMPP folder!

I see a PHP folder now with other DLLs in it. I presume you mean that.

xampp\php\extensions

and the INI file appears to be in
xampp\php\php4
folder

Is this correct?

I was expecting it to be in the xampp\apache folder. I've no idea why ;-)

Thanks for the reality check.

PostPosted: 28. December 2005 16:41
by midiwhale
BTW

if I am running Xampp in PHP 5 mode should I still edit PHP.ini or php5.ini?

(and ditto if in php 4 mode)

PostPosted: 28. December 2005 16:43
by Wiedmann
xampp\php\extensions

and the INI file appears to be in "\xampp\php\php4" folder


For PHP4, yes. But only the INI for the CLI/CGI is there. The normal INI is in "\xampp\apache\bin" (see the documentation and phpinfo).

PostPosted: 28. December 2005 17:08
by midiwhale
Thanks tremendously for your help!

(I'm runnining php5 mode on windows xp)


I've edited apache\bin\php.ini

in the (Dynamic Extensions) windows extensions section I've added

extension=my.dll

When I run xampp I get my.dll not found in EXT folder.

If I move my.dll from the EXTENSIONS folder to the EXT folder, I get
php4ts.dll was not found.
unable to load dynamic my.dll not found.
(twice)

I'm assuming the DLL I've been given is dynamic.
I know nothing about php4t.dll

Any ideas what silly mistake I am making now?

Many thanks.

PostPosted: 28. December 2005 17:15
by Wiedmann
If I move my.dll from the EXTENSIONS folder to the EXT folder, I get "php4ts.dll was not found. unable to load dynamic my.dll not found."

So this extension is compiled for PHP4 and not for PHP5...
--> switch to PHP4

PostPosted: 28. December 2005 18:08
by midiwhale
Thanks immensely.

Great how you knew that.
It works to the point of the DLL needing PHP 4.10 (not 11) now - LOL.

But progress indeed.

Many thanks!