System/Software:
- Windows 10 Pro 64 bit, Version 1909
- httpd-2.4.43-win64-VS16
- php-7.4.5-Win32-vc15-x64
- mysql-installer-web-community-8.0.20.0
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)- My
php.inifile is located inC:\php\php.ini
When 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) Pathwas blank, and for whatever reason, PHP was looking forphp.inifile inC:\Windows, and not inC:\php, where I usually had it in the past. I moved myphp.inifile intoC:\Windows, and it seems like we are happy again.