Re: PHP console (php.exe -a)

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Hello Rasmus,
I know what you are talking about. "Nice" means auto-completion for
variables, builtin functions, etc. after pressing <Tab> key. But basic
support (without auto-completion) should be still available in
Windows.

Is there anybody with Linux to try run "php -a" and tell us how to
send typed code to execution?

Thanks
Libor

2009/12/27 Rasmus Lerdorf <rasmus@xxxxxxxxxxx>:
> If PHP isn't linked against libedit/libreadline then you won't get the
> nice interactive command-line.  I have no idea if the Windows build is
> built against either of those libraries or whether those libraries even
> work on Windows, but if you are not getting the nice command line
> editing, that is likely the cause.
>
> -Rasmus
>
> Libor Jelinek wrote:
>> 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@xxxxxxxxx>:
>>> php.exe -r "echo date('Y-m-d H:i:s');" works for me on windows.
>>>
>>> Tyrael
>>>
>>> 2009/12/27 Libor <ljelinek@xxxxxxxxxxx>:
>>>> 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



[Index of Archives]     [PHP Home]     [PHP Users]     [PHP Database Programming]     [PHP Install]     [Kernel Newbies]     [Yosemite Forum]     [PHP Books]

  Powered by Linux