filepro
(PHP 4, PHP 5 <= 5.1.6)
filepro — Read and verify the map file
Описание
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.
Замечание: Когда опция safe mode включена, PHP проверяет, имеют ли файлы/каталоги, с которыми вы собираетесь работать, такой же UID (владельца), как и выполняемый скрипт.
Список параметров
-
directory
-
The map directory.
Возвращаемые значения
Возвращает TRUE
в случае успешного завершения или FALSE
в случае возникновения ошибки.
Коментарии
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.
filepro() is apparently expecting the map file to be lowercase (at least on UNIX-like systems).