php-general Digest 11 Sep 2013 16:37:45 -0000 Issue 8361

2013-09-11 Thread php-general-digest-help
php-general Digest 11 Sep 2013 16:37:45 - Issue 8361 Topics (messages 322066 through 322068): Hey, I have a full time PHP developer position in Chicago! 322066 by: Steve Gadlin 322067 by: Matt Giddings PHP CLI setting cooked terminal mode 322068 by: Alain Williams

[PHP] PHP CLI setting cooked terminal mode

2013-09-11 Thread Alain Williams
Hi, I am running a PHP script at the command line and piping the output through less: ./myScript | less Since less is an interactive program it puts the terminal into 'raw' mode so that it can read characters one at a time. However, when I do the above I find that the commands that I type

Re: [PHP] PHP CLI setting cooked terminal mode

2013-09-11 Thread Alain Williams
On Wed, Sep 11, 2013 at 05:45:45PM +0100, Stuart Dallas wrote: On 11 Sep 2013, at 17:37, Alain Williams a...@phcomp.co.uk wrote: Make sure output buffering is off by putting this at the top of your script: while(ob_end_clean()); Sorry, that does not fix the problem - but thanks for trying.

Re: [PHP] PHP CLI setting cooked terminal mode

2013-09-11 Thread Stuart Dallas
On 11 Sep 2013, at 17:37, Alain Williams a...@phcomp.co.uk wrote: Hi, I am running a PHP script at the command line and piping the output through less: ./myScript | less Since less is an interactive program it puts the terminal into 'raw' mode so that it can read characters one at