use the functoin file, it does exactly that. http://ca3.php.net/manual/en/function.file.php
Jason Merlin <[EMAIL PROTECTED]> wrote: > > 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