Changes

Jump to: navigation, search

PHP and SQLite

44 bytes added, 18:59, 13 May 2009
no edit summary
== Creating an SQLite Database with PHP ==
<google>ADSDAQBOX_FLOW</google>
An SQLite database can be opened or created using the PHP ''sqlite_open()'' function. This function accepts one mandatory and two optional arguments. The first argument is the database name (which, by convention, is given a .sqlite file extension). The second argument specifies option optional UNIX file permission settings. The final argument represents an error message to display if the file cannot be opened.
The ''sqlite_open()'' function returns a database handle on success, or a boolean ''false'' value on failure. A memory resident database can be created by passing in the string '':memory'' as the database file name argument.
SQLite databases are closed using the ''sqlite_close()'' function.
This chapter has provided an overview of working with PHP and SQLite.
 
<google>BUY_PHP_BOTTOM</google>

Navigation menu