http://www.php.net/manual/de/features.commandline.io-streams.php