|
Posted by Ike on 10/23/74 11:43
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);
?>
Navigation:
[Reply to this message]
|