Name

Readline

Synopsis

The GNU Readline library provides functions allowing a program to provide editable command lines; for example, Readline allows you to use the arrow keys to scroll through the command history. As it’s an interactive library, its use in PHP web applications is limited (if not nonexistent), but it’s available for PHP shell scripts.

To use it, you must install the GNU Readline or libedit libraries and compile PHP with the --with-readline[ =DIR ] option or, to use libedit, the --with-libedit[ =DIR ] directive.

Get Programming PHP, 2nd Edition now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.