Posted by ZeldorBlat on 11/18/87 11:43
Ike wrote:
> Can anyone tell me, offhand, why the following might work on some servers
> and not others? I am certain it has somthing to do with a setting in
> php.ini, just not sure what that setting is. One some servers, I see nothing
> at all. Anyone have any ideas here? Thanks, Ike
>
> <?php
> set_time_limit(0);// to overcome maxexecution time
> $sep = "ofaLlTherCrzyThInggsIhaveayeard";
>
> $file = "./data.txt";
> header("Content-Type: multipart/x-mixed-replace; boundary=$sep");
> do {
> print "Content-Type: text/plain\n\n";
> readfile($file);
> print "\n--$sep\n";
> flush();
> $mt = filemtime($file);
> do {
> sleep (1);
> //we won't output the same data twice.
> clearstatcache();
> } while ($mt == filemtime($file));
> } while (1);
> ?>
Check that errors are either being displayed or logged to a file. Run
the page. See what the error (if any) is and let us know.
[Back to original message]
|