Im wanting to parse a text file which is the format
me@here.com stuff@place.com etc etc
I would imagine that the end of line is \n so how would I go about outputting the entire file one line at a time ? Because what I want to do is output each line into the mysql database...
Many thanks
Carl Heaton
If you open the file with the file() command it will read the file one line at a time into an array.
$file_data = file( "path/filename" );
foreach( $file_data as $file_line ) { (SQL here entering $file_line into the database) }
cheers dude!