$10K coding deathmatch

Stephen Weeks tene at iodynamics.com
Wed Nov 1 16:17:16 MST 2006


Chris Carey wrote:

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

Not all PHP installs have a STDIN file descriptor defined?



More information about the PLUG mailing list