Quantcast
Channel: Programming Forums
Viewing all articles
Browse latest Browse all 51036

problem i cant download bigger blob files in php

$
0
0
Hi!

How can i download files bigger than 50 MB, this is my code, when i try to download files > 50mb the process stoped...




ini_set("memory_limit","16384M");    
set_time_limit(0); 
require_once("connection_db.php");
$id_file=$_REQUEST['id_doc'];

$qry="Select file_name,size,type,file from file where id='$id_file'";
$res=mysql_query($qry) or die(mysql_error()." qry::$qry");
$obj=mysql_fetch_object($res);

//header
header("Content-Type: application/force-download");
header("Content-Type: application/octet-stream");
header("Content-Type: application/download");
header("Content-type: {$obj->type}");
header('Content-Disposition: attachment; filename="'.$obj->file_name.'"');
header("Content-Transfer-Encoding: binary");
print $obj->file;
		
//close the connection
mysql_close();






thank you in advanced

Viewing all articles
Browse latest Browse all 51036

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>