Re: [PHP] read input in console mode

2003-02-06 Thread Marek Kilimajer
ncurses is the answer Mathieu Dumoulin wrote: Hi there, I found a way to read input from a console mode in linux, very simple open php://stdin to read from the standard input system. THE PROBLEM is i can't just read one character it always waits for the user to press enter which is not what i i

Re: [PHP] read input in console mode

2003-02-06 Thread Mathieu Dumoulin
Nope, it returns 1 character from the input buffer after the user presses enter sadly, i did try that already! =P - "Adam Voigt" <[EMAIL PROTECTED]> a écrit dans le message de news: [EMAIL PROTECTED] $f = fopen("php://stdin","r"); $command = fread($f,1); fclose($f); Wou

Re: [PHP] read input in console mode

2003-02-06 Thread Adam Voigt
$f = fopen("php://stdin","r"); $command = fread($f,1); fclose($f); Would that not read a single character? On Thu, 2003-02-06 at 09:41, Mathieu Dumoulin wrote: Hi there, I found a way to read input from a console mode in linux, very simple open php:/

[PHP] read input in console mode

2003-02-06 Thread Mathieu Dumoulin
Hi there, I found a way to read input from a console mode in linux, very simple open php://stdin to read from the standard input system. THE PROBLEM is i can't just read one character it always waits for the user to press enter which is not what i intended to do. When i write "Please press a key