RE: [Phplib-users] tail -f
Brought to you by:
nhruby,
richardarcher
From: Frank B. <fb...@sy...> - 2002-12-18 00:39:25
|
Oops. I forgot to consider what -f does - sorry. The refresh seems like the way to go and can be automated with: <META HTTP-EQUIV="REFRESH" CONTENT=900;URL="...whatever..."> The number is seconds to wait until refresh. Frank At 06:21 PM 12/17/02, Rob Hutton wrote: >Note with the either method, the browser will time out at some point. In >fact, with any method. It may make more sense to do a tail -50 or something >with a refresh. > >Rob Hutton >Web Safe >www.wsafe.com > >********************************************************************** > >Introducing Symantec Client Security - Integrated Anti-Virus, >Firewall, and Intrusion Detection for the Client. > >Learn more: >http://enterprisesecurity.symantec.com/symes238.cfm?JID=2&PID=11624271 > > > > -----Original Message----- > > From: php...@li... > > [mailto:php...@li...]On Behalf Of Frank Bax > > Sent: Tuesday, December 17, 2002 3:49 PM > > To: php...@li... > > Subject: Re: [Phplib-users] tail -f > > > > > > At 07:54 AM 12/17/02, Poduje, Miguel (LanInfo) wrote: > > >How can i do a "tail -f" in php? > > >I need to read a file in online mode. > > > > > >regards > > > > > > To simply dump the contents of file out to webpage, then try: > > system('tail -f /path/to/file'); > > > > http://www.php.net/manual/en/function.system.php > > > > or if you are looking to be able to process the data first yourself, then > > try popen(): > > http://www.php.net/manual/en/function.popen.php > > |