summaryrefslogtreecommitdiff
path: root/doc/note/sqlite/execSqlFileThroughPhp.txt
diff options
context:
space:
mode:
Diffstat (limited to 'doc/note/sqlite/execSqlFileThroughPhp.txt')
-rw-r--r--doc/note/sqlite/execSqlFileThroughPhp.txt2
1 files changed, 1 insertions, 1 deletions
diff --git a/doc/note/sqlite/execSqlFileThroughPhp.txt b/doc/note/sqlite/execSqlFileThroughPhp.txt
index 3bb4126..da080b1 100644
--- a/doc/note/sqlite/execSqlFileThroughPhp.txt
+++ b/doc/note/sqlite/execSqlFileThroughPhp.txt
@@ -1,7 +1,7 @@
<?php
$srcSqlFile = "path/to/query.sql";
$dstDbFile = "path/to/sqlite.db";
-$stmts = file_get_contents($srcSqlFile);
+$stmts = file_get_contents($srcSqlFile) or exit(1);
$stmts = explode(';', $stmts);
$db = new SQLite3($dstDbFile);
$db->enableExceptions(true);