On 15 Dec 2011, at 7:52pm, Apple wrote: > I just connected SQLite 3 with PHP. > The key point could be My database should put in same fold where as > info.php. > And set > extension = php_pdo.dll > extension = php_pdo_sqlite.dll > first. > > Know I have a question: > if I can put the database of SQLite 3 beside the folder of web, > and still can be accessed via php > Is there some way?
The SQLite database file is accessed as a file by PHP. It must be accessible (both location and protection) by your web server process as a local file. In your 'open' command specify the full path to the database. I would not advise putting it in a folder that you are serving to the web since this would allow anyone browsing yourweb site to inspect the full contents of the file. Simon. _______________________________________________ sqlite-users mailing list [email protected] http://sqlite.org:8080/cgi-bin/mailman/listinfo/sqlite-users

