Jon
Jon

Reputation: 2980

PHP/Perl Read File, Refresh when file is updated

I've looked all over for how to do this, and I've seen it done in WHM with Jquery and PHP, but how can I have a PHP or Perl script read a log file (logfile.log for example) on a webpage, and refresh as the log file is updated (while staying to the bottom of the log file)?

Thanks

Upvotes: 2

Views: 675

Answers (1)

karim79
karim79

Reputation: 342635

Those solutions tend to flush output to the browser as it is happening, rather than building up an output buffer and sending it all in one go.

Upvotes: 1

Related Questions