Re: PHP console (php.exe -a)
| From: | Libor Jelinek | Date: | Sun, 27 Dec 2009 16:18:25 +0000 |
| Subject: | Re: PHP console (php.exe -a) | ||
| References: | 1 2 | Groups: | php.windows |
| Request: | Send a blank email to php-windows+get-29776@lists.php.net to get a copy of this message | ||
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 <tyra3l@gmail.com>:
> php.exe -r "echo date('Y-m-d H:i:s');" works for me on windows.
>
> Tyrael
>
> 2009/12/27 Libor <ljelinek@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
>>
>>
>