phpsh, An Interactive Shell For PHP (Debian Etch)
phpsh, An Interactive Shell For PHP (Debian Etch)Version 1.0 phpsh is an interactive shell for php that features readline history, tab completion, quick access to documentation. It was developed at Facebook and ironically, is written mostly in python. This article explains how you can install/use it on a Debian Etch system. This document comes without warranty of any kind! I do not issue any guarantee that this will work for you!
1 Installing phpshphpsh depends on PHP (4 or 5, 5 is recommended) and Python 2.4+, therefore we install PHP5 and Python as follows: apt-get install php5-cli python Afterwards we download and uncompress phpsh as follows: wget http://www.phpsh.org/phpsh-latest.tgz This creates the directory phpsh with the phpsh executable. Before we can run phpsh, we must make it executable: cd phpsh
2 Using phpshNow we can start the PHP shell simply by running ./phpsh http://www.phpsh.org/readme.php shows how you can use the PHP shell. You can use tab to autocomplete function names, global variable names, constants, classes, and interfaces, and you can use the arrow keys to browse the command history. The equal sign at the beginning of a line will return the value of an expression. Type q to leave the PHP shell. Here's a sample output: server1:~/phpsh# ./phpsh
3 Links
|



Recent comments
2 days 23 hours ago
3 days 8 hours ago
3 days 11 hours ago
3 days 12 hours ago
3 days 13 hours ago
3 days 15 hours ago
3 days 16 hours ago
3 days 18 hours ago
4 days 10 hours ago
4 days 10 hours ago