0 Replies - 132 Views - Last Post: 05 February 2013 - 12:39 PM Rate Topic: -----

#1 david1842  Icon User is offline

  • New D.I.C Head

Reputation: 0
  • View blog
  • Posts: 6
  • Joined: 05-February 13

problem i cant download bigger blob files in php

Posted 05 February 2013 - 12:39 PM

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

Is This A Good Question/Topic? 0
  • +

Page 1 of 1