note 49837 deleted from ref.sqlite by cmb
| From: | cmb@php.net | Date: | Mon, 02 Nov 2020 14:57:07 +0000 |
| Subject: | note 49837 deleted from ref.sqlite by cmb | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-215712@lists.php.net to get a copy of this message | ||
Note Submitter: dotwho at NOSPAM dot mac dot com
----
This may have been obvious to others, but I had a tough time finding the info.
The default location for the actual database file is the same location of the php doc that created
the database. You can alter this behavior by specifying the full path in the creation call:
<php
$db = sqlite_open("/absolute/path/my_sqlite.db");
?>
Note that if you used the default location, the db file may be served up by the webserver if it is
in a the http document path. This is obviously a security risk that should be avoided.
//Max