逐行读取示例

<?php
$link=fopen("test.txt","r");
while (!feof($link))
{
$row=fgets($link);//逐行读取// 输出该行
echo $row."<br/>";
}
exit();