As I start the process of writing my site in PHP and MySQL, one of the first PHP scripts I\'ve written is a script to initialize my database. Drop/create the database. Dro
You want to read line by line? Use fgets.
$handle = @fopen("myfile.txt", "r"); if ($handle) { while (($content = fgets($handle, 4096)) !== false) { //echo $content; } if (!feof($handle)) { echo "Error: unexpected fgets() fail\n"; } fclose($handle); }