PHP Velho Oeste 2024

filepro

(PHP 4, PHP 5 <= 5.1.6, PHP 7)

fileproRead 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.

Note: 안전 모드일 때, PHP는 조작하려는 파일이나 디렉토리가 실행중인 스크립트와 같은 UID(owner)인지 확인합니다.

인수

directory

The map directory.

반환값

성공 시 TRUE를, 실패 시 FALSE를 반환합니다.

add a note add a note

User Contributed Notes 2 notes

up
1
Brian Clark
17 years ago
filepro() is apparently expecting the map file to be lowercase (at least on UNIX-like systems).
up
0
RobNar
20 years ago
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.
To Top