When writing php code, sometimes it is handy to have a terminal with php in interactive mode:
There, if you type:
echo 'hello world';
You expect to read 'hello worldphp> ' in the console. This is how it usually works, but in crunchbang it does not.
So, is there a way to do this?
(for the moment, a test.php file will do).
Thanks in advance.
phpsh Starting php type 'h' or 'help' to see instructions & features php> 4+3 php> echo 3+2 5 php> $var=2 php> echo $var 2 php> php> quit PHP Notice: Use of undefined constant quit - assumed 'quit' in /usr/local/lib/python2.7/dist-packages/phpsh/phpsh.php(578) : eval()'d code on line 1 php> exit