标签:
function downfile($fileurl){ $filename=$fileurl; $file = fopen($filename, "rb"); Header( "Content-type: application/html "); Header( "Accept-Ranges: bytes "); Header( "Content-Disposition: attachment; filename= 52qiuxue.html"); $contents = ""; while (!feof($file)) { $contents .= fread($file, 8192); } echo $contents; fclose($file); } $url="http://luntantest.21eedu.com/portal.php"; downfile($url);
标签:
原文地址:http://www.cnblogs.com/manthilam/p/4325180.html