Upload Limit Probs
Started on the old forum in February 2009 · view the original in the archive · old links redirect here
QUOTE (metulj @ Feb 24 2009, 08:04 PM) <{POST_SNAPBACK}>
HSDPA is simply great! 7,2Mbit down and 1,8Mbit up so fare... it'll become faster in time
I know i love the freedom.
HSPA+, which provides speeds of up to 42 Mbit/s downlink. Can't wait to see that built into a mobile phone it is going to improve so much i can't wait. Then there will be competition so it can only get better.
<?php
$filename=$_GET['file'];
if(ini_get('zlib.output_compression'))ini_set('zlib.output_compression','Off');
$file_extension=strtolower(substr(strrchr($filename,"."),1));
if($filename==""){
echo "<html><title>download error</title><body>ERROR: download file NOT SPECIFIED.</body></html>";
exit;
}
elseif(!file_exists("./downloads/$filename")){
echo "<html><title>download error</title><body>ERROR: File not found.</body></html>";
exit;
};
switch($file_extension){
case "3gp": $ctype="video/3gpp"; break;
case "mp4": $ctype="video/mp4"; break;
}
header("Pragma: public");
header("Expires: 0");
header("Cache-Control: must-revalidate, post-check=0, pre-check=0");
header("Cache-Control: private",false);
header("Content-Type: $ctype");
header("Content-Disposition: attachment; filename=\"$filename\";");
header("Content-Transfer-Encoding: binary");
header("Content-Length: ".filesize("./downloads/$filename"));
readfile("./downloads/$filename");
exit();
?>
call that download.php and add ur mime types 2 it works a treat on pcs and mobiles
path should be download.php?filename=$filename dnt put whole path as u set ur download folder in the file u only want the filename