System/Software:
PHP Script
if (!function_exists('mysqli_init') && !extension_loaded('mysqli')) {
echo 'We don\'t have mysqli!!!';
} else {
echo 'Phew we have it!';
}
Yields: We don't have mysqli!!!
phpinfo
php.ini directives
extension_dir = "ext"
extension=mysqli
Looking at the phpinfo, it seems like mysqlnd is loaded, but mysqli is not. I don't know how to get it loaded.
Question
How do I load mysqli module on Windows, when it seems like I already have directives in php.ini to have it be loaded?
Update - I found these
phpinfo() reports: Configuration File (php.ini) Path: C:\Windowsphpinfo() reports: Loaded Configuration File: (none)php.ini file is located in C:\php\php.iniWhen setting up previous versions of PHP Configuration File Path used to be C:\php\php.ini. Move to C:\Windows seems to be new, and that is what threw me off. If someone can find a proper official docs or guide where this is explained or documented, I will appreciate it. I was not able to successfully find proper installation instructions for PHP just yet, and was going by memory of my previous experiences.
My Configuration File (php.ini) Path was blank, and for whatever reason, PHP was looking for php.ini file in C:\Windows, and not in C:\php, where I usually had it in the past. I moved my php.ini file into C:\Windows, and it seems like we are happy again.