Firefox 3
Quick navigation:


Creates database file with header only, ie. security string (unless $secure is set to 0) and line with field names. If file with $filename already exists in the given $location, it is deleted. On error of creating the file either writing the header, message is displayed. Notice that in order to have unsecured file, you should set $secure to 0, not to false.


ptb_create($filename, $location, $fieldnamesLine [, $secure = PTB_DEFAULT_SECURITY]);

Syntax description

name of file containing the database
location of $filename; can be:
globally defined (in ptb_ini.php) directory
local directory (ie. the same where script calling ptb_connect is placed)
other, defined directory, eg. /samples/db (no trailing slash)
filename (ie. absolute or relative path without DOCUMENT_ROOT dependency)
names of fields, separated by a seperator (ie. pipe |)
optional: 1 (default value) if file should have security string in its first line; otherwise 0


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


ptb_create('country.php', 'G', 'id|country|capital');