Bug #63444 [Opn->Nab]: download ling probem
| From: | johannes@php.net | Date: | Mon, 05 Nov 2012 23:00:25 +0000 |
| Subject: | Bug #63444 [Opn->Nab]: download ling probem | ||
| References: | 1 | Groups: | php.bugs |
| Request: | Send a blank email to php-bugs+get-174534@lists.php.net to get a copy of this message | ||
Edit report at https://bugs.php.net/bug.php?id=63444&edit=1
ID: 63444
Updated by: johannes@php.net
Reported by: engineer dot mahmoud22 at yahoo dot vom
Summary: download ling probem
-Status: Open
+Status: Not a bug
Type: Bug
Package: Performance problem
Operating System: windows 7
PHP Version: 5.4.8
Block user comment: N
Private report: N
New Comment:
Sorry, but your problem does not imply a bug in PHP itself. For a
list of more appropriate places to ask for help using PHP, please
visit http://www.php.net/support.php as this bug system
is not the
appropriate forum for asking support questions. Due to the volume
of reports we can not explain in detail here why your report is not
a bug. The support channels will be able to provide an explanation
for you.
Thank you for your interest in PHP.
.
Previous Comments:
------------------------------------------------------------------------
[2012-11-05 22:24:11] engineer dot mahmoud22 at yahoo dot vom
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 ??
------------------------------------------------------------------------
--
Edit this bug report at https://bugs.php.net/bug.php?id=63444&edit=1