No output from PHP interactive on Windows

前端 未结 8 2089
轻奢々
轻奢々 2020-12-16 13:28

I\'m running php interactively from xampp (5.4.7) on my Win 7 machine and cannot get any output from the window. I searched around various solutions and nothing so far has

8条回答
  •  情书的邮戳
    2020-12-16 13:43

    I make cmd script for emulate interactive php shell. It reads each command into an environment variable and then starts a new instance of PHP to run each command.

    @echo off
    :loop
        set /p php="php> " %=%
        php -r "%php%"
        echo.
    goto loop
    

提交回复
热议问题