0

I tried starting PHP's interactive shell by executing the command "PHP -a" without the qutation marks but all I got is blank space. What could be wrong?

I am using Windows

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
Jonh Doe
  • 761
  • 1
  • 9
  • 25

1 Answers1

2

In Windows, press Enter after your ending PHP tag and then hit Ctrl-Z to denote the end-of-file:

C:\>php -a

Interactive mode enabled

<?php
echo "Hello, world!";
?>
^Z
Hello, world! 

It works I tried it

RiggsFolly
  • 93,638
  • 21
  • 103
  • 149
  • Riggs you're answer is helpful and probably the only correct answer, just wondering any work around with instant feedback without ctrl-z, because it takes me out the interactive shell? If no work around please let me know so I can check this as answer. Thanks. – Jonh Doe Feb 25 '16 at 14:55
  • 1
    I dont know of one, sorry – RiggsFolly Feb 25 '16 at 15:18
  • It's ok, thanks Riggs, you're answer is the correct answer. – Jonh Doe Feb 25 '16 at 15:51