Firefox 3
Quick navigation:

ptb_write

Writes database to a file. Useful, when you made some operations on a database (like selecting, sorting etc.) and want to save the result.

Syntax

ptb_write($filename, $location, $table[, $security = PTB_DEFAULT_SECURITY]);

Syntax description

$filename
name of file containing the database
$location
location of $filename; can be:
G
globally defined (in ptb_ini.php) directory
L
local directory (ie. the same where script calling ptb_connect is placed)
<path>
other, defined directory, eg. /samples/db (no trailing slash)
F
filename (ie. absolute or relative path without DOCUMENT_ROOT dependency)
$table
variable containing the database (array)
$security
optional: 1 (default value) if file should have security string in its first line; otherwise 0

Return

This function returns true on success and null (=false) on failure.