$filepath='ftp://test:[email protected]:21/movie/test/0.rm';
echo filesize($filepath);
Header( "Content-Type: audio/x-pn-realaudio");
//Header( "Content-Length:30000000");//指定文件大小
Header("Content-Length: ".filesize($filepath));
Header("Accept-Ranges: bytes");
Header( "Content-Disposition: attachment; filename=test.rm");
echo fread($file,filesize($filepath));
echo filesize($filepath);
Header( "Content-Type: audio/x-pn-realaudio");
//Header( "Content-Length:30000000");//指定文件大小
Header("Content-Length: ".filesize($filepath));
Header("Accept-Ranges: bytes");
Header( "Content-Disposition: attachment; filename=test.rm");
echo fread($file,filesize($filepath));
echo filesize($filepath);为0