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.
<?php
$file = $_GET[dfile];
$fname = $_GET[nfile];
$fileSize = filesize( $file );
set_time_limit(0);
header("Content-Type: application/force-download");
header("Content-Length: $fileSize");
header("Content-Transfer-Encoding: binary");
header("Content-Disposition: attachment; filename=\"$fname\"");
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Connection: close");
readfile( $file );
?>

