How to use the PHP interactive shell

后端 未结 4 1312
旧巷少年郎
旧巷少年郎 2020-12-31 06:05

I\'m using Ubuntu 12.04 64 bit and I want to use the PHP interactive shell:

php -a

But it doesn\'t seem to work very well, a lot of syntax

4条回答
  •  旧巷少年郎
    2020-12-31 06:51

    Try installing http://www.phpsh.org/ it is probably the easiest solution.

    Steps: (assuming dependency's installed)

    1. git clone https://github.com/facebook/phpsh
    2. cd phpsh
    3. sudo python setup.py install
    4. phpsh

提交回复
热议问题