mac os php intratactive mode has no prompt

后端 未结 3 625
小鲜肉
小鲜肉 2021-01-12 02:50

I\'m trying to run PHP in interactive mode from the terminal window and when i run the command

  php -a

it says \"Interactive mode enable

3条回答
  •  感动是毒
    2021-01-12 03:18

    There is another excellent solution (created by Facebook btw) phpsh

    In their own words:

    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. It is open source and released under a modified BSD license.

    I'm using it for a while and it's really good, in many ways even better than just php -a

提交回复
热议问题