Reputation: 690
has anyone had an issue on the prompt not initializing with the Interactive mode?
PHP 5.3.8 when running the cmd php -a seems to just hang.
I have tested the php.exe with and without out php.ini and still get the same result. I have also tested on two different machines. Both fail to give my a prompt.
If you know what I am missing please let me know
Screen shot below
Thanks!
Upvotes: 3
Views: 1640
Reputation: 3075
On Windows, php -a
doesn't provide a prompt like it does on Linux. But the interactive mode is still working, you just have to write a "complete" script including the <?php
start tag and then hit Ctrl+Z:
C:\>php -a
Interactive mode enabled
<?php
echo 5+3;
^Z
8
C:\>
Upvotes: 2