|
php.net | support | documentation | report a bug | advanced search | search howto | statistics | random bug | login |
PatchesPull RequestsHistoryAllCommentsChangesGit/SVN commits
[2012-11-05 23:00 UTC] johannes@php.net
-Status: Open
+Status: Not a bug
[2012-11-05 23:00 UTC] johannes@php.net
|
|||||||||||||||||||||||||||
Copyright © 2001-2025 The PHP GroupAll rights reserved. |
Last updated: Sat Oct 25 20:00:01 2025 UTC |
Description: ------------ when i download file , the file is corrupt becouse it download only 65 kbyte from the file although the size of the file is 10 mega and the files type i download is documents word and pdf file Test script: --------------- <?php session_start(); if(isset($_GET['pro_Id_down'])){ } require("index.php"); $pro_Id_down = $_GET['pro_Id_down']; $sqldown = "select * from proposal where P_Id= '$pro_Id_down'"; $query = mysql_query($sqldown); $result = mysql_fetch_assoc($query); $type = $result['type']; $file = $result['File']; $size = $result['size']; $name = $result['filename']; header("Content-type: $type"); header("Content-type: $type"); header("Content-length: $size"); header("Content-Disposition: filename = $name "); header("Cache-control: private"); header('Content-Transfer-Encoding: binary'); echo $file; ?> Expected result: ---------------- when downloading the file the file download stoped at 65 kbyte and file corrupt Actual result: -------------- what can i do please ??