1

I've installed PHP5.6, PHP7.0, PHP7.2 in my server with extension=php_mysqli.dll enabled.

The project is written for PHP7.0, able to connect db with PHP5.6, but not in 7.0/7.2

May I know how can i do further testing to find out the problems? No sign of MySQLi in phpinfo().

ironman
  • 11
  • 1
  • 3
  • The phpinfo should tell you which php.ini is being used, so check the extension is enabled in the correct .ini – Nigel Ren Jul 12 '20 at 19:06
  • Yea, all correct! I'm using either 7.0 or 7.2, i check my php.ini carefully – ironman Jul 12 '20 at 19:09
  • I'm sure it's enabled in php.ini. How can i diagnose further? – ironman Jul 12 '20 at 19:11
  • Can you connect to the databases with the `mysql` command line tools, this will prove that the connectivity is there (https://stackoverflow.com/questions/5131931/connecting-to-mysql-from-the-command-line). – Nigel Ren Jul 12 '20 at 19:14
  • @NigelRen No problem! The same stack of code able to connect DB server via PHP5.6 (hosted in another server) – ironman Jul 12 '20 at 19:20

0 Answers0