advanced code snippet search
gdonald on 09/27/06
fast stdin
09/27/06 10:45am09/27/06 10:43am
#!/usr/bin/php<?php exec( 'stty -icanon min 0 time 0' ); $stdin = fopen( 'php://stdin', 'r' ); while( 1 ){ while ( false !== ( $char = fgetc( $stdin ) ) ) { echo "\n$char\n"; }} ?>
Report this snippet Tweet
Comment:
You need to login to post a comment.