This PHP script:
<?php
ini_set("display_errors", 1);
error_reporting(E_ALL);
$foo = new mysqli();
var_dump($foo);
?>
gives this error message:
Fatal error: Class 'mysqli' not found in /home/xubuntu/Documents/www/quote_register/foo.php on line 5".
However, running this from the PHP console:
xubuntu@xubuntu:~/Documents/www/quote_register$ php -a
Interactive shell
php > $foo = new mysqli();
php > var_dump($foo);
dumps a mysqli-object as expected.
Honestly, I'm quite stumped by this... Anyone got any idea what's going on?