RE: [PHP] tail a file
| From: | Martin Towell | Date: | Fri, 26 Oct 2001 06:52:40 +0000 |
| Subject: | RE: [PHP] tail a file | ||
| Groups: | php.general | ||
| Request: | Send a blank email to php-general+get-72396@lists.php.net to get a copy of this message | ||
if you're using unix, there's the "tail" command:
<?php
$results =
tail -n 100 logfile.log;
echo "<pre>$results</pre>\n";
?>
-----Original Message-----
From: Yamin Prabudy [mailto:phplist@pro.net.id]
Sent: Friday, October 26, 2001 4:08 PM
To: php-general@lists.php.net
Subject: [PHP] tail a file
Hi there I need help here
I got a file say it's a logs file and keep update ever changes
I need to tail this files and pharse it into web, so I can see this the
update without login into server (jst thru web browser ) how can i do this
Thanks for Help
--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, e-mail: php-general-unsubscribe@lists.php.net
For additional commands, e-mail: php-general-help@lists.php.net
To contact the list administrators, e-mail: php-list-admin@lists.php.net