filePro

目录

These functions allow read-only access to data stored in filePro databases.

filePro is a registered trademark of fP Technologies, Inc. You can find more information about filePro at » http://www.fptech.com/.

Note:

此扩展已被移至 » PECL 资源库且不再与 PHP 捆绑。5.2.0.

安装/配置

目录

需求

构建此扩展不需要其他扩展。

安装

安装此 PECL 扩展相关的信息可在手册中标题为 PECL 扩展的安装章节中找到。更多信息如新的发行版本、下载、源文件、 维护人员信息及变更日志等,都在此处: » https://pecl.php.net/package/filepro.

运行时配置

此扩展没有在 php.ini 中定义配置指令。

资源类型

此扩展没有定义资源类型。

预定义常量

此扩展没有定义常量。

filepro_fieldcount

Find out how many fields are in a filePro database

说明

int filepro_fieldcount ( void )

Returns the number of fields (columns) in the opened filePro database.

返回值

Returns the number of fields in the opened filePro database, or FALSE on errors.

参见

  • filepro

filepro_fieldname

Gets the name of a field

说明

string filepro_fieldname ( int $field_number )

Returns the name of the field corresponding to field_number.

参数

field_number
The field number.

返回值

Returns the name of the field as a string, or FALSE on errors.

filepro_fieldtype

Gets the type of a field

说明

string filepro_fieldtype ( int $field_number )

Returns the edit type of the field corresponding to field_number.

参数

field_number
The field number.

返回值

Returns the edit type of the field as a string, or FALSE on errors.

filepro_fieldwidth

Gets the width of a field

说明

int filepro_fieldwidth ( int $field_number )

Returns the width of the field corresponding to field_number.

参数

field_number
The field number.

返回值

Returns the width of the field as a integer, or FALSE on errors.

filepro_retrieve

Retrieves data from a filePro database

说明

string filepro_retrieve ( int $row_number , int $field_number )

Returns the data from the specified location in the database.

Note: 当启用 安全模式时, PHP 会检查被操作的文件或目录是否与被执行的脚本有相同的 UID(所有者)。

参数

row_number
The row number. Must be between zero and the total number of rows minus one (0..filepro_rowcount - 1)

field_number
The field number. Accepts values between zero and the total number of fields minus one (0..filepro_fieldcount -

返回值

Returns the specified data, or FALSE on errors.

filepro_rowcount

Find out how many rows are in a filePro database

说明

int filepro_rowcount ( void )

Returns the number of rows in the opened filePro database.

Note: 当启用 安全模式时, PHP 会检查被操作的文件或目录是否与被执行的脚本有相同的 UID(所有者)。

返回值

Returns the number of rows in the opened filePro database, or FALSE on errors.

参见

  • filepro

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.

Note: 当启用 安全模式时, PHP 会检查被操作的文件或目录是否与被执行的脚本有相同的 UID(所有者)。

参数

directory
The map directory.

返回值

成功时返回 TRUE, 或者在失败时返回 FALSE

目录