PHP MODULES

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
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

PHP MODULES

Post by Parody »

What are php modules? I think I missed it somewhere. :oops: :oops: :oops:

But I get an error saying that something isnt the same as something else and its talking about modules. And they need to match. How do I change them?
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

are you sure you are not talking about "extensions"? http://pecl.php.net
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

Nope. This is the error:

Code: Select all

Unknown(): (null): Unable to initialize module
Module compiled with module API=20041030, debug=0, thread-safety=1
PHP    compiled with module API=20020429, debug=0, thread-safety=1
These options need to match
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Version mismatch. You are using a module/extension that is newer(?) than the PHP core.
The numbers are version dates.

Happens now and then trying to use a 3rd part dll... At least for me, grr...
User avatar
Chris Corbyn
Breakbeat Nuttzer
Posts: 13098
Joined: Wed Mar 24, 2004 7:57 am
Location: Melbourne, Australia

Post by Chris Corbyn »

Did you take php_mysql.dll from the PHP5 installtion and try using it in PHP4?
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

Erm... :oops: Yeah :(

But then I replaced all the php 4 files with php 5 files. So everythings peachy right?
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post by Skara »

..not if you're getting an error.
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

When I mean all the files I mean that:

I downloaded the PHP 5 source code and then copied all the files into the php 4 file folder. Then it replaced all the files that had the same name with the php5 files. So i replaced them right?
Parody
Forum Contributor
Posts: 252
Joined: Fri May 06, 2005 7:06 pm
Location: Great Britain

Post by Parody »

Does that count as replacing them:?:
User avatar
Skara
Forum Regular
Posts: 703
Joined: Sat Mar 12, 2005 7:13 pm
Location: US

Post by Skara »

I believe you either need to install 4 or 5, not try to mix them. :roll:
User avatar
JAM
DevNet Resident
Posts: 2101
Joined: Fri Aug 08, 2003 6:53 pm
Location: Sweden
Contact:

Post by JAM »

Also be careful with the various of ini settings in the php.ini. That file tends to change from time to time between versions...

Meaning; a setting that worked in php4 might be deprecated and fubar in php5. Common error when dealing with php.ini residing in the %SYSTEM%\ directory (or similiar) on the windows platform. Worth looking into, I'm just making this note for others reading this.

Neverless, you should allways make a 'clean' (re-)install of php when upgrading/downgrading.
timvw
DevNet Master
Posts: 4897
Joined: Mon Jan 19, 2004 11:11 pm
Location: Leuven, Belgium

Post by timvw »

I like the PHP5 way options much more :)

With PHP4 i could it only get to work if i placed php.ini in my windows or windows/system directory i believe...


Now i can simply point to the ini file in httpd.conf with
PHPIniDir "C:/Program Files/php-5.0.4-Win32/"
ody
Forum Contributor
Posts: 147
Joined: Sat Mar 27, 2004 4:42 am
Location: ManchesterUK

Post by ody »

Parody: goto: http://www.wampserver.com/en/ download and install.. I've never used easyphp but wamp is the same deal and I know it works. PHP5 has mysql functionality built in as far as I know..
Post Reply