PHP Velho Oeste 2024

filepro

(PHP 4, PHP 5 < 5.2.0, PECL filepro SVN)

filepromap ファイルの読み込みと照合を行う

説明

filepro ( string $directory ) : bool

この関数は、map ファイルを読み込み、照合を行います。 続いて、フィールドの数および情報を保存します。

データベースのロックを行わないため、PHP でオープンしている間は、 filePro データベースの修正を避ける必要があります。

注意: セーフモード が有効の場合、PHP は操作を行うファイル/ディレクトリが実行するスクリプトと 同じ UID (所有者)を有しているかどうかを確認します。

パラメータ

directory

map ディレクトリ。

返り値

成功した場合に 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