日期:2014-05-17 浏览次数:20529 次
$fp = fopen("download.php","rb");
while(!feof($fp)){
echo "fopen: ".fgets($fp);
}
fclose($fp);
$lines = file("download.php");
foreach($lines as $line){
echo "file: ".$line;
}
$content = file_get_contents("download.php");
echo "get_contents: ".$content;
echo "readfile: ";
readfile("download.php");
flush();