try { $dir = 'sqlite:C:/SQLite/'.$FileName.'.sqlite'; $database = new PDO($dir) or die("cannot open the database"); } catch(Exception $e) { echo $e->getMessage(); echo "Unable to create database"; } $mainQuery = "PRAGMA journal_mode=OFF"; $resultm = $database->query($mainQuery); $arr = $resultm->errorInfo(); print_r($arr); $mainQuery1 = "PRAGMA synchronous=OFF"; $resultm = $database->query($mainQuery1); $arr1 = $resultm->errorInfo(); print_r($arr1); $mainQuery2 = "PRAGMA count_changes=OFF"; $resultm = $database->query($mainQuery2); $arr2 = $resultm->errorInfo(); print_r($arr2); $mainQuery3 = "PRAGMA temp_store=OFF"; $resultm = $database->query($mainQuery3); $arr3 = $resultm->errorInfo(); print_r($arr3);
Array ( [0] => 00000 [1] => [2] => ) Array ( [0] => 00000 [1] => [2] => ) Array ( [0] => 00000 [1] => [2] => ) Array ( [0] => 00000 [1] => [2] => )
var
This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)