PHP Script being very very slow

I have a PHP script that sends a file over in chunks so I can control the speed that the client downloads the file at:

while(!feof($handle) and (connection_status()==0))
print(fread($handle, 1024*150));

This script works fine and very quickly on my dev box at home, but extremely slow on Dreamhost’s servers. On my dev box, as soon as I click on the link to download the file, it is instantiously sent and I begin downloading. On Dreamhost’s servers, the time between when I click on the link and when I actually start recieving the file varies between 2 and 5 minutes.

The file is a 600mb dummy avi file…

Any suggestions?