MySQL Forums
Forum List  »  PHP

Verry annoying problem connecting MySQL5 and PHP5
Posted by: Rysiek Zklanu
Date: July 16, 2006 05:49AM

I'm running Windows XP SP2. I just installed Apache 2.2.2 and wanted to get PHP 5.1.4 and MySQL 5.0.22.

I have configured the path to my php.ini in the httpd.conf file of Apache (PHPIniDir "C:/Praca/PHP"). And according to the phpinfo() test page it's the location used.


Now I have a problem with connecting PHP and MySQL. I have edited the php.ini file to add the mysqli extension:
extension_dir = "c:/Praca/PHP/ext/"
extension=php_mysqli.dll

*I have C:\Praca\PHP in my PATH variable. I also added C:\Praca\PHP\ext to it.
*I have copied libmysql.dll into Windows folder and Windows\System32 folder.
*I have tried all the steps with the php.net files and the mysql.com files (php_5.1.4_mysqli_5.0.22-win32).
*I have even tried setting the extension path (extension=c:/Praca/PHP/ext/php_mysqli.dll).
*I have tried the latest PHP version (php5.2-win32-latest) and used the mysqli files that come with it, as well as the mysql.com files, but nothing helped.
*I have restarted Apache like a zilion times and restarted my computer a few times as well

No matter what I try phpinfo() doesn't list the mysqli module, and any time I try to connect to a database I get the following error:
Fatal error: Class 'mysqli' not found in C:\path\file.php on line #



Any help on this one? Much appreciate any suggestions. I am sort of desperate here, because I have already wasted 3 days on an installation of a very popular trio, that shouldn't take more than 5 minutes:(((

best regards



Edited 1 time(s). Last edit at 07/16/2006 08:19AM by Rysiek Zklanu.

Options: ReplyQuote


Subject
Written By
Posted
Verry annoying problem connecting MySQL5 and PHP5
July 16, 2006 05:49AM


Sorry, you can't reply to this topic. It has been closed.

Content reproduced on this site is the property of the respective copyright holders. It is not reviewed in advance by Oracle and does not necessarily represent the opinion of Oracle or any other party.