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 12th, 2008 21:04
i can do it, 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>';
}
?>
http://www.stupidarticles.com
http://www.halazona.com
http://www.shikapika.com
http://www.stakoza.com
http://www.uploadarticles.com
http://www.ganazat.com
http://www.damima.com
http://www.tarabiza.com
http://www.articlesxarticles.com
http://www.articlesfreedirectory.com