Re: Tailing a log file {!?}

From: Date: Sun, 05 May 2002 08:40:24 +0000
Subject: Re: Tailing a log file {!?}
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-96133@lists.php.net to get a copy of this message
On Saturday 04 May 2002 16:25, Liam MacKenzie wrote: > $cmd = exec("tail -n $len /www/hosting/domains/lanolot/logs/$open", > $result); > > echo "$cmd"; > > Still returns nothing under the top text. > > All log files are chmodded 644 and are owned by the web server. > The paths to the files are correct. That's not what I meant by 'return_var', check the manual. > I've run out of ideas =( I prefer something simpler than exec(), try: $output = tail -n $len /www/hosting/domains/lanolot/logs/$open; echo $output; -- Jason Wong -> Gremlins Associates -> www.gremlins.com.hk Open Source Software Systems Integrators * Web Design & Hosting * Internet & Intranet Applications Development * /* This fortune is inoperative. Please try another. */

« previous php.general (#96133) next »