RE: [PHP] Tailing a log file {!?}

2002-05-07 Thread .ben
IIS produced plain-text log files, this is what i'd like to tail ideally. cheers. .ben -Original Message- From: David Freeman [mailto:[EMAIL PROTECTED]] Sent: 06 May 2002 02:01 To: [EMAIL PROTECTED] Subject: RE: [PHP] Tailing a log file {!?} Is there a tail util for NT

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Tom Rogers
Hi You need exec(tail -n 100 access_log,$result); $result will be an array with the output of the command. see http://www.php.net/manual/en/ref.exec.php for more info Tom At 01:51 PM 4/05/2002, Liam MacKenzie wrote: Hi guys, just a simple question, how would I go about displaying the last 100

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Liam MacKenzie
] To: Liam MacKenzie [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 4:35 PM Subject: Re: [PHP] Tailing a log file {!?} Hi You need exec(tail -n 100 access_log,$result); $result will be an array with the output of the command. see http://www.php.net/manual/en/ref.exec.php for more info Tom

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Jason Wong
On Saturday 04 May 2002 15:32, Liam MacKenzie wrote: OK, I did this and it does nothing but cause a loop and crash my browser... ? exec(tail -n 100 /www/logs/access.log,$result); for ($i=0; $i$result; $i++) { echo $resultBR; } ? What's the problem with that? An infinite loop most

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Liam MacKenzie
It returns nothing It's got me stumped - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 5:58 PM Subject: Re: [PHP] Tailing a log file {!?} On Saturday 04 May 2002 15:32, Liam MacKenzie wrote: OK, I did this and it does nothing

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Liam MacKenzie
] To: [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 5:58 PM Subject: Re: [PHP] Tailing a log file {!?} On Saturday 04 May 2002 15:32, Liam MacKenzie wrote: OK, I did this and it does nothing but cause a loop and crash my browser... ? exec(tail -n 100 /www/logs/access.log,$result); for ($i=0

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Jason Wong
On Saturday 04 May 2002 16:09, Liam MacKenzie wrote: Sorry, I should have included this in the first email... [snip] When I call the page, I get the expected at the top: Excecuting: tail -n 150 /www/hosting/domains/lanolot/logs/error.log Displaying the last 150 lines of error.log... But

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Liam MacKenzie
- From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 6:22 PM Subject: Re: [PHP] Tailing a log file {!?} On Saturday 04 May 2002 16:09, Liam MacKenzie wrote: Sorry, I should have included this in the first email... [snip] When I call the page, I get the expected

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Jason Wong
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.

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Liam MacKenzie
? Thanks! Liam - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 6:40 PM Subject: Re: [PHP] Tailing a log file {!?} On Saturday 04 May 2002 16:25, Liam MacKenzie wrote: $cmd = exec(tail -n $len /www/hosting/domains/lanolot/logs/$open

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Tom Rogers
=( Thanks - Original Message - From: Jason Wong [EMAIL PROTECTED] To: [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 6:22 PM Subject: Re: [PHP] Tailing a log file {!?} On Saturday 04 May 2002 16:09, Liam MacKenzie wrote: Sorry, I should have included this in the first email... [snip] When I

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Jason Wong
On Saturday 04 May 2002 16:43, Liam MacKenzie wrote: I have PHP's safe mode enabled, can't use backticks. And no I can't disable it, I'm hosting a few hundred sites =) I looked up return_var in the manual and got nothing, had a read of return() but don't quite understand how that would

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Liam MacKenzie
That doesn't work either! Something's going on here... - Original Message - From: Tom Rogers [EMAIL PROTECTED] To: Liam MacKenzie [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 6:49 PM Subject: Re: [PHP] Tailing a log file {!?} Hi The following works for me, give

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Dave Raven
Subject: Re: [PHP] Tailing a log file {!?} That doesn't work either! Something's going on here... - Original Message - From: Tom Rogers [EMAIL PROTECTED] To: Liam MacKenzie [EMAIL PROTECTED]; [EMAIL PROTECTED] Sent: Sunday, May 05, 2002 6:49 PM Subject: Re: [PHP] Tailing

Re: [PHP] Tailing a log file {!?}

2002-05-05 Thread Richard Archer
At 7:26 PM +1000 4/5/02, Liam MacKenzie wrote: That doesn't work either! Something's going on here... Are you fully aware of the implications of safe mode? Who owns the file you're trying to read? Who owns the PHP script being executed? What errors are you getting from the script? What errors

RE: [PHP] Tailing a log file {!?}

2002-05-05 Thread David Freeman
Is there a tail util for NT/W2K? Almost certainly there will be a tool that will read the end of files. The problem will be in what you want to look at. If you want to look at log files on NT/2K then, AFAIK, they aren't actually vanilla text files so a tail util won't do the job. I'm not

RE: [PHP] Tailing a log file {!?}

2002-05-05 Thread Miguel Cruz
On Mon, 6 May 2002, .ben wrote: Is there a tail util for NT/W2K? I suspect cygwin would include one. miguel -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php

[PHP] Tailing a log file {!?}

2002-05-04 Thread Liam MacKenzie
Hi guys, just a simple question, how would I go about displaying the last 100 lines of a log file? I know that on the command line it's: tail -n 100 access_log Is there a PHP function to do this? Cheers, Liam -- PHP General Mailing List (http://www.php.net/) To unsubscribe, visit: