Rottingham Posted February 19, 2007 Share Posted February 19, 2007 I have a problem with my setup not recognizing class 'mysqli' and I think I have discovered why. I will include the contents of my php.ini file. My web server is a home based, I recently wiped and reinstalled everything. I am running Apache 2.2 and PHP 5, with MySQL 4.1 currently, but will be moving to MySQL 5. I went back to 4.1 because of this problem, so it does exist with 5. The problem is any time I try to use mysqli I get the Fatal Error that it is not found. I just discovered that my phpinfo(); output is not matching my php.ini file, which is located in C:\WINDOWS. Here is the INI File lines include_path = "c:\PHP5\" extension_dir = "C:\PHP5\ext\" Here is what PHPinfo() spits out: extension_dir C:\php5 C:\php5 file_uploads On On highlight.bg #FFFFFF #FFFFFF highlight.comment #FF8000 #FF8000 highlight.default #0000BB #0000BB highlight.html #000000 #000000 highlight.keyword #007700 #007700 highlight.string #DD0000 #DD0000 html_errors On On ignore_repeated_errors Off Off ignore_repeated_source Off Off ignore_user_abort Off Off implicit_flush Off Off include_path .;C:\php5\pear .;C:\php5\pear I'm stumped... why would those values be seperate? I searched the drive and C:\WINDOWS is the only location with php.ini so I don't have duplicates. Thanks for any help, I'm totally stressed. Quote Link to comment https://forums.phpfreaks.com/topic/39204-php-extension_dir-and-include_dir-not-set-properlymysqli-not-found/ Share on other sites More sharing options...
Rottingham Posted February 19, 2007 Author Share Posted February 19, 2007 Silly Me! Moving php.ini back to PHP installation path fixed the problem, rather than having it in C:\WINDOWS. Sorry for the wasted post. Quote Link to comment https://forums.phpfreaks.com/topic/39204-php-extension_dir-and-include_dir-not-set-properlymysqli-not-found/#findComment-188865 Share on other sites More sharing options...
wildteen88 Posted February 20, 2007 Share Posted February 20, 2007 Note the include_path should not be the same as extension_dir. Keep the include_dir setup as its defualt value. Otherwise when you use include or require you may get errors. Quote Link to comment https://forums.phpfreaks.com/topic/39204-php-extension_dir-and-include_dir-not-set-properlymysqli-not-found/#findComment-189748 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.