Is there a command line php shell available for windows? I looking for something similar to the python shell, that will allow me to open and immediately begin executing code.
相关问题
- Views base64 encoded blob in HTML with PHP
- Laravel Option Select - Default Issue
- PHP Recursively File Folder Scan Sorted by Modific
- Can php detect if javascript is on or not?
- Using similar_text and strpos together
I found these two on github as well:
ubermuda/PHPInteractiveShell https://github.com/ubermuda/PHPInteractiveShell
d11wtq/boris · non windows https://github.com/d11wtq/boris
There is php-shell - it is not great, but still way better than
php -a
. (Also, it is dead simple to install, just runpear install http://jan.kneschke.de/assets/2007/2/17/PHP_Shell-0.3.1.tgz
.) There is also phpa-norl, but I haven't tried it.Another simple variant, influenced by other answers. Create and run the following cmd-script:
Immediate execution, Ctrl+C for exit. Insert correct path before "php.exe".