official interactive PHP?

official interactive PHP?

am 26.09.2007 20:36:49 von Summercoolness

I just wonder if there is an official interactive PHP interpreter?

kind of like the one IDLE for Python or irb for Ruby.

Re: official interactive PHP?

am 26.09.2007 20:59:38 von zeldorblat

On Sep 26, 2:36 pm, Summercool wrote:
> I just wonder if there is an official interactive PHP interpreter?
>
> kind of like the one IDLE for Python or irb for Ruby.

php -a

Re: official interactive PHP?

am 26.09.2007 21:27:49 von Summercoolness

On Sep 26, 11:59 am, ZeldorBlat wrote:
> On Sep 26, 2:36 pm, Summercool wrote:
>
> > I just wonder if there is an official interactive PHP interpreter?
>
> > kind of like the one IDLE for Python or irb for Ruby.
>
> php -a

is it true that you have to keep on typing



on each line?

anything just to test the programming side and let you omit the php ?> ?

Re: official interactive PHP?

am 26.09.2007 22:29:22 von Jerry Stuckle

Summercool wrote:
> On Sep 26, 11:59 am, ZeldorBlat wrote:
>> On Sep 26, 2:36 pm, Summercool wrote:
>>
>>> I just wonder if there is an official interactive PHP interpreter?
>>> kind of like the one IDLE for Python or irb for Ruby.
>> php -a
>
> is it true that you have to keep on typing
>
>
>
> on each line?
>
> anything just to test the programming side and let you omit the > php ?> ?
>
>

first statement
second statement
third statement
?>

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================

Re: official interactive PHP?

am 26.09.2007 23:02:29 von gosha bine

Summercool wrote:
> On Sep 26, 11:59 am, ZeldorBlat wrote:
>> On Sep 26, 2:36 pm, Summercool wrote:
>>
>>> I just wonder if there is an official interactive PHP interpreter?
>>> kind of like the one IDLE for Python or irb for Ruby.
>> php -a
>
> is it true that you have to keep on typing
>
>
>
> on each line?
>
> anything just to test the programming side and let you omit the > php ?> ?
>
>

php -a is only truly "interactive" when compiled with readline support,
otherwise it waits for eof before executing anything. You still don't
need with it. There's also -r option for immediate code execution.


--
gosha bine

extended php parser ~ http://code.google.com/p/pihipi
blok ~ http://www.tagarga.com/blok