Delicious Bookmark this on Delicious Share on Facebook SlashdotSlashdot It! Digg! Digg



PHP : Function Reference : filePro Functions : filepro

filepro

Read and verify the map file (PHP 4, PHP 5 <= 5.1.6)
bool filepro ( string directory )

This reads and verifies the map file, storing the field count and info.

No locking is done, so you should avoid modifying your filePro database while it may be opened in PHP.

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.

Parameters

directory

The map directory.

Return Values

Returns TRUE on success or FALSE on failure.

Code Examples / Notes » filepro

robnar

Two notes here:
1) PHP does not need a running copy of filepro to read the datafiles.  Just provide it with a directory containing the map file, key file, and the data* file(s) for the table you want to read. Screen files, outfiles, and process files are not used.
2) This function seems to pass back the system error code in brackets [] along with the PHP warning.  A list of error codes can be found in your filepro manual's appendix.


kulpp

FYI: Please check for outstanding bug reports on the filepro functions before using them.

brian clark

filepro() is apparently expecting the map file to be lowercase (at least on UNIX-like systems).

Change Language


Follow Navioo On Twitter
filepro_fieldcount
filepro_fieldname
filepro_fieldtype
filepro_fieldwidth
filepro_retrieve
filepro_rowcount
filepro
eXTReMe Tracker