<createdb $db $syspass $publicpass>
createdb function creates a new database whose path is
$db. The passwords for
PUBLIC are given as arguments. For security, the
$syspass is required to be at least 6 characters and
contain punctuation. The
may be empty.
Note that unlike the
DB directive, which affects all other
SQL commands, the database for
createdb is specified at run
createdb can be used in an administrative script
to create new databases.
createdb returns "
Creating database succeeded" on
success, or "
Creating database failed" or nothing on error.
<createdb "/usr/local/mydb" "Klaatu!" "">
createdb function was added Oct. 10 1996.
The path given to
createdb is absolute, not relative to the
HTML documents tree, and is not checked. It is up to the programmer
to verify the path before calling
createdb, e.g. to check
whether the Web user is permitted to access the dir, etc.
Copyright © Thunderstone Software Last updated: Mon Feb 18 10:28:15 EST 2013