Hi Carsten,
Carsten wrote:
> But on Windows that's buggy:
> | # php -a
> | Interactive mode enabled
> |
> | | $a=5;
> | $a++;
> | echo $a.PHP_EOL;
> |
> Nothing happens on Windows at this point. The cursor is in the next line
> waiting for input. But, if I now enter "^C", I can see the result:
>
On 27/12/09 17:44 PM, Shahar Evron wrote:
> Hi,
>
> Did it just print out back the stuff you typed in?
>
> When working with -a don't forget to add the opening ' like you would in a regular script.
>
> BTW on *nix if you build PHP with gettext support there's real
> interactive mode support (a com
Am 27.12.2009 17:30, schrieb Rasmus Lerdorf:
>> Is there anybody with Linux to try run "php -a" and tell us how to
>> send typed code to execution?
>
> You just type it in and hit Enter. There is no trick. And without
> libreadline there really is no point.
Maybe you have another PHP-CLI then m
Libor Jelinek wrote:
> Hello Rasmus,
> I know what you are talking about. "Nice" means auto-completion for
> variables, builtin functions, etc. after pressing key. But basic
> support (without auto-completion) should be still available in
> Windows.
>
> Is there anybody with Linux to try run "php
Hello Rasmus,
I know what you are talking about. "Nice" means auto-completion for
variables, builtin functions, etc. after pressing 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
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 li
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 ho
i work in dekstop to
*using php !!
and one problem my office offers is something must done using
windows.. than i use PHP-GTK
it might not related to your question.. if you need to input number or
something that posible using window .. u should try use PHP-GTK..
confuse? u not the only
On 12/
php.exe -r "echo date('Y-m-d H:i:s');" works for me on windows.
Tyrael
2009/12/27 Libor :
> 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 or didn't execute code. Please, help me!
>
Hello Sascha,
yes, running "php -a" should await input from STDIN but it should
means keyboard. And I don't know how to end STDIN input from keyboard
(how to tell to php.exe "execute what I typed").
I am typing typing but I don't know how to force php to execute what I
typed on keyboard :-(
Thank
Hi,
Did it just print out back the stuff you typed in?
When working with -a don't forget to add the opening ' 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 or didn't execute code.
Hi Libor,
Libor wrote:
> 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.
I never worked with php as an interactive console application but as far as I
can see on the php.net homepage [1], the -a switch is used to call a script
which then
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 or 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
13 matches
Mail list logo