Re: Interactive mode not very useful



C. (http://symcbean.blogspot.com/) wrote:
On May 30, 6:14 pm, Sal <h...@xxxxxxxxxxx> wrote:
I'm running PHP 5.2.6 on WindowsXP. When I try interactive mode with
">php -a" the slightest syntax error throws me out of the interpreter
and back to the command line. This is not very useful. Isn't there a
way to stay in interactive mode after a syntax error?

No - that's not how PHP works. Indeed, apart from a very old version
of Forth, it's not how any programming language I've ever used works.
Try editing the file first then running it.

C.
I dunno. BASIC used to be like that.
.



Relevant Pages

  • Re: Interactive mode not very useful
    ... and back to the command line. ... way to stay in interactive mode after a syntax error? ... Try editing the file first then running it. ...
    (comp.lang.php)
  • Re: Using Net Use command...
    ... A syntax error means there's something wrong with the command itself, not the result of the command. ... You can only map a drive to a share, not a folder. ... So I'm on my network, but is there another way to just browse to a directory? ...
    (microsoft.public.windows.server.networking)
  • Re: Regular Expression Problem
    ... It's not a problem with the command line, or anything like that, it's ... hopesprings# cat> test.pl ... syntax error at ./test.pl line 12, near ""Test two contains toast and ...
    (perl.beginners)
  • Re: Regular Expression Problem
    ... It's not a problem with the command line, or anything like that, it's ... hopesprings# cat> test.pl ... syntax error at ./test.pl line 12, near ""Test two contains toast and ...
    (perl.beginners)
  • Re: Regular Expression Problem
    ... It's not a problem with the command line, or anything like that, it's ... hopesprings# cat> test.pl ... syntax error at ./test.pl line 12, near ""Test two contains toast and ...
    (perl.beginners)