Faqts

+ Search
Add Entry AlertManage Folder Edit Entry Add page to http://del.icio.us/
Did You Find This Entry Useful?

4 of 7 people (57%) answered Yes
Recently 4 of 7 people (57%) answered Yes

Entry

I have a text file which has 150 lines of data. How can i get it 2 read past the first line

May 17th, 2002 22:14
Max Holman, Byron Malcolm, http://www.php.net/file


Use the file() function.
Example of reading a text file into an array, looping through the 
array, and echoing it back to the screen:
<?php
$content = file (myfile.txt');
while (list (,$line) = each ($content)) {
    echo $line . '<BR>';
}
?>