Page 1 of 1
PHP MODULES
Posted: Fri May 27, 2005 11:37 am
by Parody
What are php modules? I think I missed it somewhere.
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?
Posted: Fri May 27, 2005 11:38 am
by timvw
are you sure you are not talking about "extensions"?
http://pecl.php.net
Posted: Fri May 27, 2005 11:40 am
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
Posted: Fri May 27, 2005 11:47 am
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...
Posted: Fri May 27, 2005 11:49 am
by Chris Corbyn
Did you take php_mysql.dll from the PHP5 installtion and try using it in PHP4?
Posted: Fri May 27, 2005 1:05 pm
by Parody
Erm...

Yeah
But then I replaced all the php 4 files with php 5 files. So everythings peachy right?
Posted: Fri May 27, 2005 1:24 pm
by Skara
..not if you're getting an error.
Posted: Fri May 27, 2005 1:27 pm
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?
Posted: Fri May 27, 2005 2:39 pm
by Parody
Does that count as replacing them:?:
Posted: Fri May 27, 2005 5:13 pm
by Skara
I believe you either need to install 4 or 5, not try to mix them.

Posted: Sat May 28, 2005 4:21 am
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.
Posted: Sat May 28, 2005 5:27 am
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/"
Posted: Mon May 30, 2005 1:06 pm
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..