PHP 매뉴얼
이전 |  | 다음

# LXXXIX. GNU Readline

# 소개

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 meant using PHP from the command line.

> 참고: 이 확장 모듈은 윈도우 플랫폼에서는 사용할 수 없습니다.

# 요구 사항

To use the readline functions, you need to install libreadline. You can find libreadline on the home page of the GNU Readline project, at http://cnswww.cns.cwru.edu/~chet/readline/rltop.html. It's maintained by Chet Ramey, who's also the author of Bash.

You can also use this functions with the libedit library, a non-GPL replacement for the readline library. The libedit library is BSD licensed and available for download from http://sourceforge.net/projects/libedit/.

# 설치

To use this functions you must compile the CGI or CLI version of PHP with readline support. You need to configure PHP `--with-readline[=DIR]`. In order you want to use the libedit readline replacement, configure PHP `--with-libedit[=DIR]`.

# 런타임 설정

이 확장 모듈은 `php.ini` 설정이 존재하지 않습니다.

# 리소스 종류

이 확장 모듈은 리소스형을 정의하지 않습니다.

# 상수 정의

이 확장 모듈은 상수를 정의하지 않습니다.

이전 | 처음으로 | 다음
pspell_suggest | 위로 | readline_add_history