I am having problems using sqlite when running my php-files on the localhost (Windows 7 IIS). I have installed IIS, PHP 5.3, xdebug and enabled sqlite in IIS manager. My IDE is phpStorm. PHP works fine. But after the line
$db = new PDO('sqlite:new.db');
$db = {PDO} [0]. After that, $db->query($query, SQLITE_BOTH, $error) gives an empty $error, which is what I can understand. However I do not understand why new PDO does not work and does not return any error either. The database is in the root folder, the very same code works on the internet.
Just to be sure, here is the phpinfo output on sqlite:
PDO support enabled
PDO drivers mysql, sqlite, sqlsrv, sqlite2
Any idea what can be wrong?