logo
Apache Lounge
Webmasters

 

About Forum Index Downloads Search Register Log in RSS X


Keep Server Online

If you find the Apache Lounge, the downloads and overall help useful, please express your satisfaction with a donation.

or

Bitcoin

A donation makes a contribution towards the costs, the time and effort that's going in this site and building.

Thank You! Steffen

Your donations will help to keep this site alive and well, and continuing building binaries. Apache Lounge is not sponsored.
Post new topic   Forum Index -> Third-party Modules View previous topic :: View next topic
Reply to topic   Topic: Apache mysqli installation problem
Author
limonata



Joined: 02 Feb 2007
Posts: 3

PostPosted: Tue 13 Feb '07 23:38    Post subject: Apache mysqli installation problem Reply with quote

> Hi,
>
> I follow your instruction to install the apache 2.2.4 and php5.2.0 and
> mysql5.0.27 on windows.
>
> when i run phpinfo(), i have a section describing mysql but i don't have a
> section describing mysqli. so when i use mysqli class in my php code, i
> get this error:
> Fatal error: Class 'mysqli' not found in C:\Apache2\htdocs\11\results.php
> on line 26
>
> in php.ini file:
> extension_dir = "C:\php\ext"
> extension=php_mysql.dll
> estension=php_mysqli.dll
Back to top
pips



Joined: 03 May 2006
Posts: 65
Location: Manchester, UK

PostPosted: Wed 14 Feb '07 12:33    Post subject: Reply with quote

For PHP to access mysqli you need to use the libmysql.dll file, and include the location of this file in your PATH directory.

See documentation at: http://uk2.php.net/mysqli/

Phil
Back to top
James Blond
Moderator


Joined: 19 Jan 2006
Posts: 7298
Location: Germany, Next to Hamburg

PostPosted: Wed 14 Feb '07 12:39    Post subject: Reply with quote

Take the libmysql.dll from mysql\bin and copy it into apache\bin

secondly I see a little typo in your php.ini

extension_dir = "C:\php\ext"
extension=php_mysql.dll
estension=php_mysqli.dll
Back to top
limonata



Joined: 02 Feb 2007
Posts: 3

PostPosted: Wed 14 Feb '07 17:17    Post subject: thank you guys very much Reply with quote

specially thanks for pointing out my typo error in php.ini file and also i put a copy of the Libmysql.dll into c:\php\ directory and apache\bin directory and now it works.
Back to top


Reply to topic   Topic: Apache mysqli installation problem View previous topic :: View next topic
Post new topic   Forum Index -> Third-party Modules