Not working with:
// dsn: set the DSN of your database (read the installation manual)
$dsn = "sqlite:$dataDir/data.sdb";

<snap>
Notice: Undefined variable: dataDir in /var/www/dl/include/config.php on line 48

Fatal error: Uncaught exception 'PDOException' with message 'SQLSTATE[HY000] [14] unable to open database file' in /var/www/dl/include/init.php:14 Stack trace: #0 /var/www/dl/include/init.php(14): PDO->__construct('sqlite:/data.sd...') #1 /var/www/dl/include/sess.php(3): include('/var/www/dl/inc...') #2 /var/www/dl/admin.php(3): include('/var/www/dl/inc...') #3 {main} thrown in /var/www/dl/include/init.php on line 14
</snap>

but working with

$dsn = "sqlite:/var/spool/dl/data.sdb";



Reply via email to