本文实例讲述了php控制文件下载速度的方法。分享给大家供大家参考。具体实现方法如下: <?php /* * set here a limit of downloading rate (e.g. 10.20 Kb/s) */ $download_rate = 10.20; $download_file = 'download-file.zip'; $target_file = 'target-file.zip'; if(file_exists($download_file)){ /* headers */ header('Last-Modified:'.gmdate