On Wed, Oct 23, 2013 at 10:26 AM, Scott Weber <[email protected]> wrote:
> My test script is AMAZINGLY simple, as a tutorial to test with:
> <?php
> $line1 = trim(fgets(STDIN));
> fwrite(STDOUT, "{\"code\":200 , \"body\" : \"The script ran\" }\n");
> fflush(STDOUT);
> ?>
Try the following modification to your test script. It loops the STDIN
input as Robert stated.
<?php
while($line1 = trim(fgets(STDIN))) {
fwrite(STDOUT, "{\"code\":200 , \"body\" : \"The script ran\" }\n");
fflush(STDOUT);
}
?>
-Steve
--
Steve Hammer
/* If Linux doesn't have the solution, you have the wrong problem */