|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2003-11-24 16:48 UTC] php at plouk dot net
[2003-11-24 20:03 UTC] iliaa@php.net
[2003-11-25 12:44 UTC] php at plouk dot net
[2003-11-25 15:50 UTC] iliaa@php.net
[2003-12-01 03:13 UTC] sniper@php.net
|
|||||||||||||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sun Oct 26 07:00:01 2025 UTC |
Description: ------------ This script isn't able to create a table in an existing database. Why? (No error are detected and permissions on the database file seem all right) #ls -l -rw-rw-r-- 1 nobody nogroup 263 Nov 24 23:42 sqlite.php -rw-rw-rw- 1 nobody nogroup 0 Nov 24 22:45 test.db Reproduce code: --------------- <?php //sqlite.php $db=sqlite_open('test.db', 0666, $sqlite_err); echo var_dump($db).'<BR />'; echo var_dump($sqlite_err).'<BR />'; $req="CREATE TABLE my_table (value INTEGER PRIMARY KEY)"; $res=sqlite_query($db,$req); echo var_dump($res).'<BR />'; sqlite_close($db); ?> Expected result: ---------------- A table Actual result: -------------- Nothing, the db file is always a 0 byte's file...