发新话题
打印

PHP4手册:函数库及函数(十五) filePro 资料库函式库

本主题由 admin 于 2007-11-4 12:03 移动

PHP4手册:函数库及函数(十五) filePro 资料库函式库

--------------------------------------------------------------------------------
filePro 资料库函式库  
--------------------------------------------------------------------------------
  

本函式库共有 7 个函式
FilePro 由 Personix, Inc. 所发展的资料库系统,它支援 UNIX 及 DOS 等作业系统。更多的细节可以参考 http://www.fileproplus.com。目前 PHP 提供的功能仅能读取 filePro 资料库,而无法对它做写入等相关动作。   

filepro: 读取 FilePro Map 档。  
filepro_fieldname: 取得栏位名称。  
filepro_fieldtype: 取得栏位型态。  
filepro_fieldwidth: 取得栏位宽度。  
filepro_retrieve: 取得指定储存格资料。  
filepro_fieldcount: 取得栏位数目。  
filepro_rowcount: 取得列数目。  

--------------------------------------------------------------------------------
函式:filepro()  
--------------------------------------------------------------------------------
  

filePro 资料库函式库

filepro
读取 FilePro Map 档。
语法: boolean filepro(string directory);
传回值: 布林值
函式种类: 资料库功能

  
  
内容说明  

本函式用来读取 FilePro 资料库的 Map 档。
  
--------------------------------------------------------------------------------
函式:filepro_fieldname()  
--------------------------------------------------------------------------------
  

filePro 资料库函式库

filepro_fieldname
取得栏位名称。
语法: string filepro_fieldname(int field_number);
传回值: 字串
函式种类: 资料库功能

  
  
内容说明  

本函式用来读取 FilePro 资料库中指定栏位的栏位名称。参数 field_number 为栏位的序号,为正整数型态。
  
--------------------------------------------------------------------------------
函式:filepro_fieldtype()  
--------------------------------------------------------------------------------
  

filePro 资料库函式库

filepro_fieldtype
取得栏位型态。
语法: string filepro_fieldtype(int field_number);
传回值: 字串
函式种类: 资料库功能

  
  
内容说明  

本函式用来读取 FilePro 资料库中指定栏位的栏位型态。参数 field_number 为栏位的序号,为正整数型态。
  
--------------------------------------------------------------------------------
函式:filepro_fieldwidth()  
--------------------------------------------------------------------------------
  

filePro 资料库函式库

filepro_fieldwidth
取得栏位宽度。
语法: int filepro_fieldwidth(int field_number);
传回值: 整数
函式种类: 资料库功能

  
  
内容说明  

本函式用来读取 FilePro 资料库中指定栏位的栏位宽度。参数 field_number 为栏位的序号,为正整数型态。
  
--------------------------------------------------------------------------------
函式:filepro_retrieve()  
--------------------------------------------------------------------------------
  

filePro 资料库函式库

filepro_retrieve
取得指定储存格资料。
语法: string filepro_retrieve(int row_number, int field_number);
传回值: 字串
函式种类: 资料库功能

  
  
内容说明  

本函式用来读取 FilePro 资料库中指定储存格的资料。参数 row_number 及 field_number 分别为列数及栏数,均为正整数型态。
  
--------------------------------------------------------------------------------
函式:filepro_fieldcount()  
--------------------------------------------------------------------------------
  

filePro 资料库函式库

filepro_fieldcount
取得栏位数目。
语法: int filepro_fieldcount(void);
传回值: 整数
函式种类: 资料库功能

  
  
内容说明  

本函式用来取得 FilePro 资料库的栏位 (field) 数目。
  
--------------------------------------------------------------------------------
函式:filepro_rowcount()  
--------------------------------------------------------------------------------
  

filePro 资料库函式库

filepro_rowcount
取得列数目。
语法: int filepro_rowcount(void);
传回值: 整数
函式种类: 资料库功能

  
  
内容说明  

本函式用来取得 FilePro 资料库的列 (row) 数目。

TOP

发新话题