/**
* PHP中通过fget读取文件
*
* @param
* @arrange 512-笔记网: www.www.jb51.cc
**/
<?PHP
$fh = fopen("testfile.txt",'r') or
die("File does not exist or you lack permission to open it");
$line = fgets($fh);
fclose($fh);
echo $line;
?>
/*** 来自编程之家 jb51.cc(jb51.cc) ***/