sporadic execution

Do you have a question? Post it now! No Registration Necessary.  Now with pictures!

Threaded View
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

    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";
      print "\n--$sep\n";
      $mt = filemtime($file);
      do {
        sleep (1);
 //we won't output the same data twice.
      } while ($mt == filemtime($file));
    } while (1);

Re: sporadic execution

Ike wrote:
Quoted text here. Click to load it

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.

Re: sporadic execution

Quoted text here. Click to load it

Well, this is scary. I have error_reporting  = E_ALL and am outputting to a
log file. But there are no errors. I can't understand how I can have no
errors and nothing displayed? -Ike

Site Timeline