Red Hat Linux Server, Apache 2.2, PHP 5.5.4
When I run this in the command line, everything seems to be fine:
php -r '$mysqli = new mysqli("127.0.0.1", "un", "pw", "things", "3306");'
At the same time, I have a .php document which doesn't run. 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's going on here? Thanks in advance.