I downloaded and installed php7 from: http://windows.php.net/qa/#php-7.0-ts-VC14-x64
The php codes are running fine. I am not able to connect database using 'mysqli' Class. It says
Class 'mysqli' not found
I've uncommented extension=php_mysqli.dll
in php.ini file.
Did I miss anything while installing php7.
Check if MySQLi is Installed You can do that by visiting a phpinfo() page that you made, or by running this command: php -m | grep mysqli.
For the MySQLi functions to be available, you must compile PHP with support for the MySQLi extension. The MySQLi extension was introduced with PHP version 5.0. 0. The MySQL Native Driver was included in PHP version 5.3.
I solved the issue, it was a silly mistake. The extension_dir
was not set. I set it to extension_dir = "C:\php7\ext"
and its working fine.
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With