How to use the PHP interactive shell

后端 未结 4 1331
旧巷少年郎
旧巷少年郎 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:59

    This is what you'll get when the php5-readline package is not installed. Assuming that's your problem you can fix it by running this command:

    sudo apt-get install php5-readline
    

提交回复
热议问题