[syslog-ng]Problem with program() destination

Tamas MEZEI syslog-ng@lists.balabit.hu
Tue, 25 Jan 2005 15:27:19 +0100


> $std=fopen("php://stdin","r");
> $line = fgets($std,1024);

I guess you need to enclose the whole reading-from-a-file method into an 
endless loop. The fgets($source,$bufsize) function reads $bufsize amount 
of chars from $source, so you're reading a 1024 chars long line only.

Tamas