本帖最后由 u013650821 于 2014-02-17 16:20:52 编辑

解决方案 »

  1.   

    $file_handle = fopen("d:/data/namelist.txt", "r");
    echo '<pre>';
    while (!feof($file_handle)) {
      $line_of_text = fgets($file_handle);
      print $line_of_text . "<BR>";
    }
    echo '</pre>';fclose($file_handle);
      

  2.   

    $file_handle = fopen("d:/data/namelist.txt", "r");while (!feof($file_handle)) {$line_of_text = fgets($file_handle);
    echo "<pre>";
    print $line_of_text . "<BR>";
    echo "</pre>";}fclose($file_handle);试试