Query: dbase_open
OS: php
Section: 3
Format: Original Unix Latex Style Formatted with HTML and a Horizontal Scroll Bar
DBASE_OPEN(3) 1 DBASE_OPEN(3) dbase_open - Opens a databaseSYNOPSISint dbase_open (string $filename, int $mode)DESCRIPTIONdbase_open(3) opens a dBase database with the given access mode. Note When safe mode is enabled, PHP checks whether the files or directories being operated upon have the same UID (owner) as the script that is being executed. Note This function is affected by open_basedir.PARAMETERSo $filename - The name of the database. It can be a relative or absolute path to the file where dBase will store your data. o $mode - An integer which correspond to those for the open() system call (Typically 0 means read-only, 1 means write-only, and 2 means read and write). Note You can't open a dBase file in write-only mode as the function will fail to read the headers information and thus you can't use 1 as $mode.EXAMPLESExample #1 Opening a dBase database file <?php // open in read-only mode $db = dbase_open('/tmp/test.dbf', 0); if ($db) { // read some data .. dbase_close($db); } ?>RETURN VALUESReturns a database link identifier if the database is successfully opened, or FALSE if an error occurred.SEE ALSOdbase_create(3), dbase_close(3). PHP Documentation Group DBASE_OPEN(3)
Related Man Pages |
---|
dbase_get_record_with_names(3) - php |
dbase_replace_record(3) - php |
lchown(3) - php |
sqlite_open(3) - php |
sqlite_popen(3) - php |