LiquidSchwarz
Programmer
I have a website where visitors can download zip files of CAD utilities. Some of my visitors have reported that the downloading of these files times out and they are unable to fully download the files (zip files about 600KB in size).
I am trying to find a way that to ensure that the files download completely without timing out. At the very least, I would like to be able to warn people is the download was interrupted.
Is there a way to prevent downloads from timing out? Web service is Yahoo Business, they say it's not a server issue.
I've tried adding content header information (from php.net documentation) to the hyperlinks. It has helped somewhat but not completely.
I am a PHP greenhorn so please be gentle and use small words
Sample of what I've tried posted below.
<?php
$bigfile="../downloads/waycoolapp.zip"
if ((is_integer (strpos($user_agent, "msie"
)) && (is_integer (strpos($user_agent, "win"
)))
{$deestat="filename="; }
else
{$deestat="attachment; filename=";}
?>
<P><A HREF="<?php
set_time_limit (0);
header("Pragma: public"
;
header("Expires: 0"
;
header("Cache-Control: must-revalidate, post-check=0, pre-check=0"
;
header("Content-Type: application/force-download"
;
header("Content-Type: application/zip"
;
header( "Content-Disposition: ".$deestat.$dm2003);
header("Content-Transfer-Encoding: binary"
;
header("Content-Length: ".filesize($bigfile));
header( "Content-Description: File Transfert"
;
print $bigfile;
?>
">Download my way cool app!</A>
I am trying to find a way that to ensure that the files download completely without timing out. At the very least, I would like to be able to warn people is the download was interrupted.
Is there a way to prevent downloads from timing out? Web service is Yahoo Business, they say it's not a server issue.
I've tried adding content header information (from php.net documentation) to the hyperlinks. It has helped somewhat but not completely.
I am a PHP greenhorn so please be gentle and use small words

Sample of what I've tried posted below.
<?php
$bigfile="../downloads/waycoolapp.zip"
if ((is_integer (strpos($user_agent, "msie"


{$deestat="filename="; }
else
{$deestat="attachment; filename=";}
?>
<P><A HREF="<?php
set_time_limit (0);
header("Pragma: public"

header("Expires: 0"

header("Cache-Control: must-revalidate, post-check=0, pre-check=0"

header("Content-Type: application/force-download"

header("Content-Type: application/zip"

header( "Content-Disposition: ".$deestat.$dm2003);
header("Content-Transfer-Encoding: binary"

header("Content-Length: ".filesize($bigfile));
header( "Content-Description: File Transfert"

print $bigfile;
?>
">Download my way cool app!</A>