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

2009-12-30 Thread Richard Quadling
2009/12/30 Richard Quadling : > 2009/12/30 Richard Quadling : >> 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, hel

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

2009-12-30 Thread Richard Quadling
2009/12/30 Richard Quadling : > 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! >> >> (I am running PHP 5.3.0 on Wi

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

2009-12-30 Thread Richard Quadling
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! > > (I am running PHP 5.3.0 on Win XP.) > > Thanks > Libor > > -- > PHP Win

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

2009-12-28 Thread Sascha Meyer
Hi all, had to check my php installation today and just realized that php.exe called from command line was not the same as used by my Apache2 webserver (because of different locations set in PATH and PHPRC environment variables). Means that my test from yesterday was not performed with PHP 5.3.

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

2009-12-28 Thread Libor Jelinek
It's not good message for me but thank you for definitive answer. Libor 2009/12/28 Pierre Joye : > 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

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

2009-12-28 Thread Ferenc Kovacs
nice :D Tyrael On Mon, Dec 28, 2009 at 1:47 PM, Pierre Joye wrote: > 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

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

2009-12-28 Thread Pierre Joye
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! > > (I am running PHP 5.3.0 on Win XP.) > As far as I remember the interac

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

2009-12-27 Thread Shahar Evron
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

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

2009-12-27 Thread Rasmus Lerdorf
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

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

2009-12-27 Thread Libor Jelinek
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

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

2009-12-27 Thread Rasmus Lerdorf
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

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

2009-12-27 Thread Libor Jelinek
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

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

2009-12-27 Thread Gunawan Wibisono
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/

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

2009-12-27 Thread Ferenc Kovacs
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! >

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

2009-12-27 Thread Libor Jelinek
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

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

2009-12-27 Thread Shahar Evron
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.

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

2009-12-27 Thread Sascha Meyer
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