PHP Velho Oeste 2024

filepro

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

fileproLiest und überprüft die Map-Datei

Beschreibung

filepro ( string $directory ) : bool

Die Funktion liest und überprüft die Map-Datei, die die Feldnummern und dazugehörigen Informationen enthält.

Es wird kein Locking durchgeführt, daher sollten Sie davon absehen, an einer mit PHP geöffneten filePro-Datenbank Veränderungen vorzunehmen.

Hinweis: Wenn Safe Mode aktiviert ist, überprüft PHP, ob die Dateien/Verzeichnisse, die mit dem Skript bearbeitet werden sollen, die gleiche UID (Eigentümer) haben wie das Skript selbst.

Parameter-Liste

directory

Das Map-Verzeichnis.

Rückgabewerte

Gibt bei Erfolg TRUE zurück. Im Fehlerfall wird FALSE zurückgegeben.

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