stdin buffering

From: Date: Thu, 09 Sep 2004 19:10:27 +0000
Subject: stdin buffering
Groups: php.general 
Request: Send a blank email to php-general+get-196244@lists.php.net to get a copy of this message
I'm currently working on some stuff with php-cli and got a few problem. I want to be able to read one single character from stdin via keyboard, ie. pressing a button. It works fine if I use enter as newline afterwards, but I would like to do it without pressing enter. Thus, I have to turn off buffering in the input stream but I can't find any way to do it. Been looking everywhere on php.net but can't find any hints. // Martin

« previous php.general (#196244) next »