note 58108 added to function.sqlite-query

From: Date: Mon, 24 Oct 2005 16:35:50 +0000
Subject: note 58108 added to function.sqlite-query
Groups: php.notes 
Request: Send a blank email to php-notes+get-97523@lists.php.net to get a copy of this message
sqlite_open will return NULL if the web server cannot write to the sqlite database file. I saw the following message in my web server error log: PHP Warning: sqlite_query(): (null) ... It turns out that the sqlite database file was owned by a user other than the one the web server was running as. In my case, it was a Linux system running Apache (which was running under the context of user apache). The sqlite database file was owned by root. I changed ownership of the file to user apache and now it works! The sqlite_open call now returns a valid result handle. Jason Aeschilman ---- Manual Page -- http://www.php.net/manual/en/function.sqlite-query.php Edit -- http://master.php.net/manage/user-notes.php?action=edit+58108 Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+58108&report=yes&reason=added+to+the+manual Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+58108&report=yes&reason=bad+code Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+58108&report=yes&reason=spam Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+58108&report=yes&reason=useless Delete: non-english -- http://master.php.net/manage/user-notes.php?action=delete+58108&report=yes&reason=non-english Delete: already in docs -- http://master.php.net/manage/user-notes.php?action=delete+58108&report=yes&reason=already+in+docs Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+58108&report=yes Reject -- http://master.php.net/manage/user-notes.php?action=reject+58108&report=yes Search -- http://master.php.net/manage/user-notes.php

« previous php.notes (#97523) next »