Re: [PHP-WIN] PHP console (php.exe -a)

[email protected] (Libor Jelinek)
Newsgroups php.windows
Message-ID <[email protected]>
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 <[email protected]>:
> 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 <[email protected]>:
>>> php.exe -r "echo date('Y-m-d H:i:s');" works for me on windows.
>>>
>>> Tyrael
>>>
>>> 2009/12/27 Libor <[email protected]>:
>>>> 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
>>>>
>>>>
>>
>
>
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.