I have a PHP script that downloads some quite large files (about 300Mb).
This works on my Linux Server but has been moved to a windows server and now the downloads seem to timeout after about 100 secs.
I have tried everything that I can think of and even the ISP (Fasthosts) has run out of ideas.
The old PHP version was 5.1.2. The new one is 5.1.6. The core settings in both ini files seem to match up.
Before I dive into the IIS setup, has anybody had this problem or can anybody suggest anything?
The new server is 2008 SP1 running IIS7
The script is below.
$file = $_GET[dfile];
$fname = $_GET[nfile];
$fileSize = filesize( $file );
header("Content-Disposition: attachment; filename=\"$fname\"");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
readfile( $file );