Red Hat Linux Server, Apache 2.2, PHP 5.5.4
When I run this on the command line, everything seems fine:
php -r '$ mysqli = new mysqli ("127.0.0.1", "un", "pw", "things", "3306");
At the same time, I have a .php document that does not start. I get this error ...
PHP Fatal error: class 'mysqli' not found in [/path/toβ /vars.php on line 2
from this code:
<?php $mysqli = new mysqli("localhost", "un", "pw", "things", "3306"); ?>
Other .php pages (which don't use mysqli) work fine. Any idea what is going on here? Thanks in advance.
php mysqli apache
Sam Watkinson Oct 10 '13 at 20:47
source share