Please look at these articles what I mean... PHP should contains live
interactive console (like Perl or Python have also) to test short
snippets of code.

http://blog.thinkphp.de/archives/44-More-PHP-power-on-the-command-line.html
http://www.webmasterworld.com/forum88/11023.htm

But I don't know how to send typed snippet for execution.

It should works like this:

% php -a
interactive mode enabled

php > $foo = 1;
php > $bar = 4;
php > echo $foo + $bar;
5

--
Libor

2009/12/27 Ferenc Kovacs <tyr...@gmail.com>:
> php.exe -r "echo date('Y-m-d H:i:s');" works for me on windows.
>
> Tyrael
>
> 2009/12/27 Libor <ljeli...@virtage.com>:
>> Hi all,
>> I don't know if I am stupid or what but I can't find out how to send typed
>> code to execute.
>>
>>> php.exe -a
>> Interactive mode enabled
>>
>> Pressing <Enter> or <Ctrl-D> didn't execute code. Please, help me!
>>
>> (I am running PHP 5.3.0 on Win XP.)
>>
>> Thanks
>> Libor
>>
>> --
>> PHP Windows Mailing List (http://www.php.net/)
>> To unsubscribe, visit: http://www.php.net/unsub.php
>>
>>
>

-- 
PHP Windows Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to