/**
* PHP通过fread将文件内容载入内存
*
* @param
* @arrange 512-笔记网: 512Pic.com
**/
<?PHP
$fp = @fopen ("/home/public_html/myfile.txt","r") or
die ("Cannot open file");
$f_contents = fread ($fp,filesize ($fp));
@fclose ($fp);
/*** 来自编程之家 jb51.cc(jb51.cc) ***/