I usually use file():

http://www.php.net/manual/en/function.file.php

-TG

> -----Original Message-----
> From: Merlin [mailto:[EMAIL PROTECTED] 
> Sent: Friday, September 17, 2004 4:17 PM
> To: [EMAIL PROTECTED]
> Subject: [PHP] reading from files
> 
> 
> Hi there,
> 
> I am wondering how to read lines from a file to a php array? 
> I would like to 
> integrate a logfile into a html site. Is it possible to read 
> line by line and to 
> check how many lines there are in total?
> 
> Thank you for any hint on that,
> 
> Merlin
> 
> -- 
> PHP General Mailing List (http://www.php.net/)
> To unsubscribe, visit: http://www.php.net/unsub.php
> 
> 

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php

Reply via email to