Jeg har et upload script med følgende code
Script i upload code jeg får følgende fejldownload timeout ved 30 sec.
er der en der kan hjælpe med at øge det til 60 sec.
function MsDosTimeToUNIX($DOSdate, $DOStime)
{
$year = (($DOSdate & 65024) >> 9) + 1980;
$month = ($DOSdate & 480) >> 5;
$day = ($DOSdate & 31);
$hours = ($DOStime & 63488) >> 11;
$minutes = ($DOStime & 2016) >> 5;
$seconds = ($DOStime & 31) * 2;
return mktime($hours, $minutes, $seconds, $month, $day, $year);
}
function list_zip($filename)
{
global $bordercolor, $headercolor, $tablecolor, $font, $headerfontcolor;
global $normalfontcolor, $datetimeformat, $mess;
$fp=@fopen($filename,"rb");
if (!$fp) {return;}
fseek($fp, -22, SEEK_END);
// Get central directory field values
$headersignature = 0;
do { // Search header
$data = fread($fp, 22);
list($headersignature,$numberentries, $centraldirsize, $centraldiroffset) =
array_values(unpack("Vheadersignature/x6/vnumberentries/Vcentraldirsize/Vcentraldiroffset", $data));
fseek($fp, -23, SEEK_CUR);
} while (($headersignature != 0x06054b50) && (ftell($fp) > 0));
if ($headersignature != 0x06054b50)
{
echo "<p><font face=\"$font\" size=\"3\" color=\"$normalfontcolor\">$mess[45]</font></p>";
fclose($fp);
return;
}
