Sophie

Sophie

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

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
>GNU Readline</TITLE
><META
NAME="GENERATOR"
CONTENT="Modular DocBook HTML Stylesheet Version 1.79"><LINK
REL="HOME"
TITLE="PHP 手册"
HREF="index.html"><LINK
REL="UP"
TITLE="函数参考"
HREF="funcref.html"><LINK
REL="PREVIOUS"
TITLE="rar_open"
HREF="function.rar-open.html"><LINK
REL="NEXT"
TITLE="readline_add_history"
HREF="function.readline-add-history.html"><META
HTTP-EQUIV="Content-type"
CONTENT="text/html; charset=UTF-8"></HEAD
><BODY
CLASS="reference"
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.rar-open.html"
ACCESSKEY="P"
>上一页</A
></TD
><TD
WIDTH="80%"
ALIGN="center"
VALIGN="bottom"
></TD
><TD
WIDTH="10%"
ALIGN="right"
VALIGN="bottom"
><A
HREF="function.readline-add-history.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
></TABLE
><HR
ALIGN="LEFT"
WIDTH="100%"></DIV
><DIV
CLASS="reference"
><A
NAME="ref.readline"
></A
><DIV
CLASS="TITLEPAGE"
><H1
CLASS="title"
>CXXXVI. GNU Readline</H1
><DIV
CLASS="PARTINTRO"
><A
NAME="AEN196828"
></A
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="readline.intro"
>简介</A
></H1
><P
>&#13;     The readline functions implement an interface
     to the GNU Readline library. These are functions that provide
     editable command lines. An example being the way Bash allows you
     to use the arrow keys to insert characters or scroll through
     command history. Because of the interactive nature of this
     library, it will be of little use for writing Web applications,
     but may be useful when writing scripts used from a
     <A
HREF="features.commandline.html"
>command line</A
>.
    </P
><DIV
CLASS="note"
><BLOCKQUOTE
CLASS="note"
><P
><B
>注意: </B
>本扩展模块在 Windows 平台下不可用。</P
></BLOCKQUOTE
></DIV
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="readline.requirements"
>需求</A
></H1
><P
>&#13;     To use the readline functions, you need to install libreadline. You can
     find libreadline on the home page of the GNU Readline project, at
     <A
HREF="http://cnswww.cns.cwru.edu/~chet/readline/rltop.html"
TARGET="_top"
>http://cnswww.cns.cwru.edu/~chet/readline/rltop.html</A
>.
     It's maintained by Chet Ramey, who's also the author of Bash.
    </P
><P
>&#13;     You can also use these functions with the libedit library, a non-GPL
     replacement for the readline library. The libedit library is BSD
     licensed and available for download from
     <A
HREF="http://www.thrysoee.dk/editline/"
TARGET="_top"
>http://www.thrysoee.dk/editline/</A
>.
    </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="readline.installation"
>安装</A
></H1
><P
>&#13;  To use these functions you must compile the CGI or CLI version of PHP
  with readline support. You need to configure PHP
  <CODE
CLASS="option"
>--with-readline[=DIR]</CODE
>.
  In order you want to use the libedit readline replacement, configure PHP
  <CODE
CLASS="option"
>--with-libedit[=DIR]</CODE
>.
 </P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="readline.configuration"
>运行时配置</A
></H1
><P
>本扩展模块在 <TT
CLASS="filename"
>php.ini</TT
> 中未定义任何配置选项。</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="readline.resources"
>资源类型</A
></H1
><P
>本扩展模块未定义任何资源类型。</P
></DIV
><DIV
CLASS="section"
><H1
CLASS="section"
><A
NAME="readline.constants"
>预定义常量</A
></H1
><P
>本扩展模块未定义任何常量。</P
></DIV
></DIV
><DIV
CLASS="TOC"
><DL
><DT
><B
>目录</B
></DT
><DT
><A
HREF="function.readline-add-history.html"
>readline_add_history</A
>&nbsp;--&nbsp;Adds a line to the history</DT
><DT
><A
HREF="function.readline-callback-handler-install.html"
>readline_callback_handler_install</A
>&nbsp;--&nbsp;Initializes the readline callback interface and terminal, prints the prompt and returns immediately</DT
><DT
><A
HREF="function.readline-callback-handler-remove.html"
>readline_callback_handler_remove</A
>&nbsp;--&nbsp;Removes a previously installed callback handler and restores terminal settings</DT
><DT
><A
HREF="function.readline-callback-read-char.html"
>readline_callback_read_char</A
>&nbsp;--&nbsp;Reads a character and informs the readline callback interface when a line is received</DT
><DT
><A
HREF="function.readline-clear-history.html"
>readline_clear_history</A
>&nbsp;--&nbsp;Clears the history</DT
><DT
><A
HREF="function.readline-completion-function.html"
>readline_completion_function</A
>&nbsp;--&nbsp;Registers a completion function</DT
><DT
><A
HREF="function.readline-info.html"
>readline_info</A
>&nbsp;--&nbsp;Gets/sets various internal readline variables</DT
><DT
><A
HREF="function.readline-list-history.html"
>readline_list_history</A
>&nbsp;--&nbsp;Lists the history</DT
><DT
><A
HREF="function.readline-on-new-line.html"
>readline_on_new_line</A
>&nbsp;--&nbsp;Inform readline that the cursor has moved to a new line</DT
><DT
><A
HREF="function.readline-read-history.html"
>readline_read_history</A
>&nbsp;--&nbsp;Reads the history</DT
><DT
><A
HREF="function.readline-redisplay.html"
>readline_redisplay</A
>&nbsp;--&nbsp;Redraws the display</DT
><DT
><A
HREF="function.readline-write-history.html"
>readline_write_history</A
>&nbsp;--&nbsp;Writes the history</DT
><DT
><A
HREF="function.readline.html"
>readline</A
>&nbsp;--&nbsp;Reads a line</DT
></DL
></DIV
></DIV
></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.rar-open.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.readline-add-history.html"
ACCESSKEY="N"
>下一页</A
></TD
></TR
><TR
><TD
WIDTH="33%"
ALIGN="left"
VALIGN="top"
>rar_open</TD
><TD
WIDTH="34%"
ALIGN="center"
VALIGN="top"
><A
HREF="funcref.html"
ACCESSKEY="U"
>上一级</A
></TD
><TD
WIDTH="33%"
ALIGN="right"
VALIGN="top"
>readline_add_history</TD
></TR
></TABLE
></DIV
></BODY
></HTML
>