David Lundquist
David Lundquist

Reputation: 690

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!

Upvotes: 3

Views: 1640

Answers (1)

Ignitor
Ignitor

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

Related Questions