Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

PHP5.3.8 Interactive Shell does not initiate PROMPT> when run in Windows 7 / Windows 2k8

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!

like image 268
David Lundquist Avatar asked Dec 04 '25 07:12

David Lundquist


1 Answers

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:\>
like image 200
Ignitor Avatar answered Dec 05 '25 21:12

Ignitor