php man page for dbase_open

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 database

SYNOPSIS
int dbase_open (string $filename, int $mode)
DESCRIPTION
dbase_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.
PARAMETERS
o $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.
EXAMPLES
Example #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 VALUES
Returns a database link identifier if the database is successfully opened, or FALSE if an error occurred.
SEE ALSO
dbase_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
Similar Topics in the Unix Linux Community
Opening Files in append mode
get the data from sybase and append to the file
Explore your database with Talend Open Profiler
[PHP] asking how to make plain text database searching system
Creating script to read many files and load into database via single control file