. * * $URL: http://code.google.com/p/paintweb $ * $Date: 2009-07-02 20:49:09 +0300 $ */ // This file takes a text file as input, and outputs a JSON-encoded string. $content = ''; while(!feof(STDIN)) { $content .= fgets(STDIN, 4096); } echo json_encode($content); // vim:set spell spl=en fo=anl1qrowcb tw=80 ts=2 sw=2 sts=2 sta et noai nocin fenc=utf-8 ff=unix: ?>