Book/filepro-Phpdoc专题
filePro
目录
- 简介
- 安装/配置
- 预定义常量
- filePro 函数
- filepro_fieldcount — Find out how many fields are in a filePro database
- filepro_fieldname — Gets the name of a field
- filepro_fieldtype — Gets the type of a field
- filepro_fieldwidth — Gets the width of a field
- filepro_retrieve — Retrieves data from a filePro database
- filepro_rowcount — Find out how many rows are in a filePro database
- filepro — Read and verify the map file
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 资源库且不再与 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 <span class="methodname">filepro_fieldcount ( <span class="methodparam">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 <span
class="methodname">filepro_fieldname ( <span
class="methodparam">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 <span
class="methodname">filepro_fieldtype ( <span
class="methodparam">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 <span
class="methodname">filepro_fieldwidth ( <span
class="methodparam">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 <span
class="methodname">filepro_retrieve ( <span
class="methodparam">int $row_number ,
int
$field_number )
Returns the data from the specified location in the database.
参数
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 <span class="methodname">filepro_rowcount ( <span class="methodparam">void )
Returns the number of rows in the opened filePro database.
返回值
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.
参数
directory
The map directory.
返回值
成功时返回 true, 或者在失败时返回 false。
目录
- filepro_fieldcount — Find out how many fields are in a filePro database
- filepro_fieldname — Gets the name of a field
- filepro_fieldtype — Gets the type of a field
- filepro_fieldwidth — Gets the width of a field
- filepro_retrieve — Retrieves data from a filePro database
- filepro_rowcount — Find out how many rows are in a filePro database
- filepro — Read and verify the map file