Connecting Tech Pros Worldwide Help | Site Map

official interactive PHP?

Summercool
Guest
 
Posts: n/a
#1: Sep 26 '07
I just wonder if there is an official interactive PHP interpreter?

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

ZeldorBlat
Guest
 
Posts: n/a
#2: Sep 26 '07

re: official interactive PHP?


On Sep 26, 2:36 pm, Summercool <Summercooln...@gmail.comwrote:
Quote:
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

Summercool
Guest
 
Posts: n/a
#3: Sep 26 '07

re: official interactive PHP?


On Sep 26, 11:59 am, ZeldorBlat <zeldorb...@gmail.comwrote:
Quote:
On Sep 26, 2:36 pm, Summercool <Summercooln...@gmail.comwrote:
>
Quote:
I just wonder if there is an official interactive PHP interpreter?
>
Quote:
kind of like the one IDLE for Python or irb for Ruby.
>
php -a
is it true that you have to keep on typing

<? php statements ?>

on each line?

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


Jerry Stuckle
Guest
 
Posts: n/a
#4: Sep 26 '07

re: official interactive PHP?


Summercool wrote:
Quote:
On Sep 26, 11:59 am, ZeldorBlat <zeldorb...@gmail.comwrote:
Quote:
>On Sep 26, 2:36 pm, Summercool <Summercooln...@gmail.comwrote:
>>
Quote:
>>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
>
<? php statements ?>
>
on each line?
>
anything just to test the programming side and let you omit the <?
php ? ?
>
>
<?php
first statement
second statement
third statement
?>

--
==================
Remove the "x" from my email address
Jerry Stuckle
JDS Computer Training Corp.
jstucklex@attglobal.net
==================
gosha bine
Guest
 
Posts: n/a
#5: Sep 26 '07

re: official interactive PHP?


Summercool wrote:
Quote:
On Sep 26, 11:59 am, ZeldorBlat <zeldorb...@gmail.comwrote:
Quote:
>On Sep 26, 2:36 pm, Summercool <Summercooln...@gmail.comwrote:
>>
Quote:
>>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
>
<? php statements ?>
>
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
Closed Thread