Sophie

Sophie

distrib > Mandriva > 2008.1 > x86_64 > by-pkgid > 05cd670d8a02b2b4a0ffb1756f2e8308 > files > 9286

php-manual-zh-5.2.4-1mdv2008.1.noarch.rpm

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<HTML
><HEAD
><TITLE
>px_get_info</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="Paradox File Access"
HREF="ref.paradox.html"><LINK
REL="PREVIOUS"
TITLE="px_get_field"
HREF="function.px-get-field.html"><LINK
REL="NEXT"
TITLE="px_get_parameter"
HREF="function.px-get-parameter.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="refentry"
BGCOLOR="#FFFFFF"
TEXT="#000000"
LINK="#0000FF"
VLINK="#840084"
ALINK="#0000FF"
><DIV
CLASS="NAVHEADER"
><TABLE
SUMMARY="Header navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TH
COLSPAN="3"
ALIGN="center"
>PHP 手册</TH
></TR
><TR
><TD
WIDTH="10%"
ALIGN="left"
VALIGN="bottom"
><A
HREF="function.px-get-field.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.px-get-parameter.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><H1
><A
NAME="function.px-get-info"
></A
>px_get_info</H1
><DIV
CLASS="refnamediv"
><A
NAME="AEN167494"
></A
><P
>    (PECL)</P
>px_get_info&nbsp;--&nbsp;Return lots of information about a paradox file</DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN167497"
></A
><H2
>说明</H2
>array <B
CLASS="methodname"
>px_get_info</B
> ( resource pxdoc )<BR
></BR
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN167505"
></A
><H2
>参数</H2
><P
>&#13;   <P
></P
><DIV
CLASS="variablelist"
><DL
><DT
><CODE
CLASS="parameter"
>pxdoc</CODE
></DT
><DD
><P
>&#13;       Resource identifier of the paradox database
       as returned by <A
HREF="function.px-new.html"
><B
CLASS="function"
>px_new()</B
></A
>.
      </P
></DD
></DL
></DIV
>
  </P
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN167515"
></A
><H2
>返回值</H2
><P
>&#13;   Returns an associated array with lots of information about a paradox
   file. This array is likely to be extended in the future.
  </P
><P
></P
><DIV
CLASS="variablelist"
><DL
><DT
>fileversion</DT
><DD
><P
>Version of file multiplied by 10, e.g. 70.</P
></DD
><DT
>tablename</DT
><DD
><P
>Name of table as stored in the file. If the database was created
       by pxlib, then this will be the name of the file without the
       extension.</P
></DD
><DT
>numrecords</DT
><DD
><P
>Number of records in this table.</P
></DD
><DT
>numfields</DT
><DD
><P
>Number of fields in this table.</P
></DD
><DT
>headersize</DT
><DD
><P
>Number of bytes used for the header. This is usually 0x800.</P
></DD
><DT
>recordsize</DT
><DD
><P
>Number of bytes used for each record. This is the sum of all
       field sizes (available since version 1.4.2).</P
></DD
><DT
>maxtablesize</DT
><DD
><P
>&#13;      This value multiplied by 0x400 is the size of a data block in bytes.
      The maximum number of records in a datablock is the integer part of
      (maxtablesize * 0x400 - 8) / recordsize.
     </P
></DD
><DT
>numdatablocks</DT
><DD
><P
>&#13;      The number of data blocks in the file. Each data block contains a
      certain number of records which depends on the record size and the data
      block size (maxtablesize). Data blocks may not necessarily be
      completely filled.
     </P
></DD
><DT
>numindexfields</DT
><DD
><P
>&#13;      Number of fields used for the primary index. The fields do always start
      with field number 1.
    </P
></DD
><DT
>codepage</DT
><DD
><P
>&#13;      The DOS codepage which was used for encoding fields with character data.
      If the target encoding is not set with
      <A
HREF="function.px-set-targetencoding.html"
><B
CLASS="function"
>px_set_targetencoding()</B
></A
> this will be the encoding for
      character fields when records are being accessed with
      <A
HREF="function.px-get-record.html"
><B
CLASS="function"
>px_get_record()</B
></A
> or
      <A
HREF="function.px-retrieve-record.html"
><B
CLASS="function"
>px_retrieve_record()</B
></A
>.
     </P
></DD
></DL
></DIV
></DIV
><DIV
CLASS="refsect1"
><A
NAME="AEN167562"
></A
><H2
>参见</H2
><P
>&#13;   <P
></P
><TABLE
BORDER="0"
><TBODY
><TR
><TD
><A
HREF="function.px-numfields.html"
><B
CLASS="function"
>px_numfields()</B
></A
></TD
></TR
><TR
><TD
><A
HREF="function.px-numrecords.html"
><B
CLASS="function"
>px_numrecords()</B
></A
></TD
></TR
></TBODY
></TABLE
><P
></P
>
  </P
></DIV
><DIV
CLASS="NAVFOOTER"
><HR
ALIGN="LEFT"
WIDTH="100%"><TABLE
SUMMARY="Footer navigation table"
WIDTH="100%"
BORDER="0"
CELLPADDING="0"
CELLSPACING="0"
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
><A
HREF="function.px-get-field.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="index.html"
ACCESSKEY="H"
>起始页</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
><A
HREF="function.px-get-parameter.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>px_get_field</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="ref.paradox.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>px_get_parameter</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>