![]() |
Home
iRate! IceMelon IM Tutorials Headlines CoolSites PHP Functions |
Most Referenced Functions » google_pagerank() » preg_replace() » imagecreatefrompng() » site_pageranks() » imagepng() » imagedestroy() » imagestring() » imagecolorallocate() » htmlentities() » fopen() » preg_match() » header() » getimagesize() » htmlspecialchars() » session_start() » ob_start() » strstr() » ob_flush() » preg_match_all() » strpos() » flush() » setcookie() » str_replace() » array2vars() » nl2br() » preg_split() » ereg() » urlencode() » ereg_replace() » readgzfile() Become a sponsor for $15/month. Link is sitewide - PR5 homepage, 20+ PR4 pages, 90+ PR3 pages. Email dave[AT]icemelon[D0T]c0m. |
PHP Functions
Function: dbase_open (PHP 3, PHP 4, PHP 5) dbase_open -- Opens a databaseDescriptionint dbase_open ( string filename, int mode )dbase_open() opens a dBase database with the given access mode. Note: When safe mode is enabled, PHP checks whether the files or directories you are about to operate on have the same UID (owner) as the script that is being executed. Note: This function is affected by open_basedir . Parameters
filename The name of the database. It can be a relative or absolute path to the file where dBase will store your data. modeAn 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 ValuesReturns a database link identifier if the database is successfully opened, or FALSE if an error occurred. Related Function(s) |