$10K coding deathmatch

Chris Carey chris.carey at gmail.com
Wed Nov 1 15:39:52 MST 2006

On 11/1/06, Stephen Weeks <tene at iodynamics.com> wrote:
> Josh Coates wrote:
> >your code should assume that the input is coming via standard input (stdin)

if(!defined("STDIN")) define("STDIN", fopen('php://stdin','r'));
$input = split("\n", fread(STDIN, 8192)); // PHP has a limit of 8192
bytes on fread :(

More information about the PLUG mailing list