Reading from STDIN
Defines STDIN for older versions of PHP, can be used for STDOUT and STDERR too, but those are hardly used
<?php
if(!defined(’STDIN’)) {
/**
*@const STDIN holds stdin information
*/
define(’STDIN’, fopen(’php://stdin’, ‘r’));
}
?>
