For Programmers: Free Programming Magazines  


Home > Archive > PHP DB > February 2007 > Re: [PHP-DB] Fatal Error: Class 'mysqli' not found in...









You are viewing an archived Text-only version of the thread. To view this thread in it's original format and/or if you want to reply to this thread please [click here]

 

Author Re: [PHP-DB] Fatal Error: Class 'mysqli' not found in...
John Comerford

2007-02-19, 6:57 pm

Have you tried using phpinfo() to make sure it's seeing your php.ini file ?


Ralph E. Brickley wrote:
> Hello All,
>
>
>
> I have been using apache 2, PHP5 and MySQL 4 and 5 for a long time, and
> recently had to wipe my box due to a virus!
>
>
>
> Now that I have everything reinstalled, I can NOT get rid of this annoying
> MySQLi error. I have experienced this before but I can't seem to fix it this
> time. I have all of the necessary ini file settings, such as
>
>
>
> #
>
> Extension=php_mysqli.dll
>
>
>
> #
>
> Extension_dir = "C:\PHP5\ext\"
>
>
>
>
>
> I do not get any errors on start up from Apache, but in trying to access
> mysqli I get this fatal error. I have lib_mysqli.dll all over this computer,
> Windows, System32, System, C:\PHP5, C:\PHP5\EXT\, everywhere. I'm stuck and
> need help. I uninstalled MySQL 5 and put 4.1 back on and that didn't help
> either.
>
>
>
> Any clues? Thanks!
>
>
> Ralph
>
> McMinnville
>
>
>
>
>
>
>
>
>
>
>



--

1^st Floor, 184 -186 Glenferrie Road, Malvern VIC 3144

PH: *(03) 9500 1466*
FX : *(03) 9500 1469*
Email: johnc@styleman.com.au <mailto:johnc@styleman.com.au>
Web: www.styleman.com.au <http://www.styleman.com.au>

The information in this e-mail is confidential and is intended solely
for the addressee. Any views or opinions presented are solely those of
the author and do not necessarily represent those of Option Systems Pty
Ltd. If you are not the intended recipient, please delete this message
and contact the sender.

Ralph E. Brickley

2007-02-19, 6:57 pm

I discovered my problem by using phpinfo() and realizing that the
include_path and extension_dir did not equal what I had set in php.ini. Then
I got to digging.

I have always kept php.ini in C:\WINDOWS. I copied php.ini from windows to
the PHP installation path, restarted apache, and viola. Problem solved.

Thanks for all the help.

I do laugh at my calamity... thought I must cry too!

-----Original Message-----
From: John Comerford [mailto:johnc@optionsystems.com.au]
Sent: Monday, February 19, 2007 3:33 PM
To: Ralph E. Brickley
Cc: php-db@lists.php.net
Subject: Re: [PHP-DB] Fatal Error: Class 'mysqli' not found in...

Have you tried using phpinfo() to make sure it's seeing your php.ini file ?


Ralph E. Brickley wrote:
> Hello All,
>
>
>
> I have been using apache 2, PHP5 and MySQL 4 and 5 for a long time, and
> recently had to wipe my box due to a virus!
>
>
>
> Now that I have everything reinstalled, I can NOT get rid of this annoying
> MySQLi error. I have experienced this before but I can't seem to fix it

this
> time. I have all of the necessary ini file settings, such as
>
>
>
> #
>
> Extension=php_mysqli.dll
>
>
>
> #
>
> Extension_dir = "C:\PHP5\ext\"
>
>
>
>
>
> I do not get any errors on start up from Apache, but in trying to access
> mysqli I get this fatal error. I have lib_mysqli.dll all over this

computer,
> Windows, System32, System, C:\PHP5, C:\PHP5\EXT\, everywhere. I'm stuck

and
> need help. I uninstalled MySQL 5 and put 4.1 back on and that didn't help
> either.
>
>
>
> Any clues? Thanks!
>
>
> Ralph
>
> McMinnville
>
>
>
>
>
>
>
>
>
>
>



--

1^st Floor, 184 -186 Glenferrie Road, Malvern VIC 3144

PH: *(03) 9500 1466*
FX : *(03) 9500 1469*
Email: johnc@styleman.com.au <mailto:johnc@styleman.com.au>
Web: www.styleman.com.au <http://www.styleman.com.au>

The information in this e-mail is confidential and is intended solely
for the addressee. Any views or opinions presented are solely those of
the author and do not necessarily represent those of Option Systems Pty
Ltd. If you are not the intended recipient, please delete this message
and contact the sender.
Sponsored Links







Also available: Server administration forum archive | Web Design forum archive | Software forum archive | Hardware reviews archive

Copyright 2008 codecomments.com