PHP extensions - how?

Problems with the Windows version of XAMPP, questions, comments, and anything related.

PHP extensions - how?

Postby midiwhale » 28. December 2005 14:02

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.
midiwhale
 
Posts: 7
Joined: 28. December 2005 13:11

Postby Wiedmann » 28. December 2005 14:05

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).
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby midiwhale » 28. December 2005 16:36

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.
midiwhale
 
Posts: 7
Joined: 28. December 2005 13:11

Postby midiwhale » 28. December 2005 16:41

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)
midiwhale
 
Posts: 7
Joined: 28. December 2005 13:11

Postby Wiedmann » 28. December 2005 16:43

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).
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby midiwhale » 28. December 2005 17:08

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.
midiwhale
 
Posts: 7
Joined: 28. December 2005 13:11

Postby Wiedmann » 28. December 2005 17:15

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
Wiedmann
AF Moderator
 
Posts: 17106
Joined: 01. February 2004 12:38
Location: Stuttgart / Germany

Postby midiwhale » 28. December 2005 18:08

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!
midiwhale
 
Posts: 7
Joined: 28. December 2005 13:11


Return to XAMPP for Windows

Who is online

Users browsing this forum: No registered users and 45 guests