ID: 15613 Updated by: [EMAIL PROTECTED] Reported By: [EMAIL PROTECTED] -Status: No Feedback +Status: Open Bug Type: Output Control Operating System: Windows XP (Professional) PHP Version: 4.1.1 New Comment:
Reopening. Previous Comments: ------------------------------------------------------------------------ [2002-03-20 02:22:51] [EMAIL PROTECTED] The bug is not fixed. The problems are still present. By the way, fread doesn't work well with all files. The problems only occur under Windows XP. ------------------------------------------------------------------------ [2002-03-20 00:00:05] [EMAIL PROTECTED] No feedback was provided for this bug for over a month, so it is being suspended automatically. If you are able to provide the information that was originally requested, please do so and change the status of the bug back to "Open". ------------------------------------------------------------------------ [2002-03-06 04:48:51] [EMAIL PROTECTED] I could solve the problem with binary files by using fread instead of readfile: <? $link = $save_as_name = "test.tif"; // or *.bmp, *.txt, ... $size = filesize($link); header("Content-Type: application/octet-stream"); header("Content-disposition: inline; filename=\"".$save_as_name."\""); header("Content-Length: $size"); header("Content-Transfer-Encoding: binary\n"); $fp = fopen($link, 'rb') or print('Could not open file!'); $read = fread($fp, $size) or print('Could not read file'); fclose($fp); print($read); ?> But this only works with binary files. With text files a get the same problems (see above). ------------------------------------------------------------------------ [2002-02-20 03:23:36] [EMAIL PROTECTED] Now i turned implicit_flush in the php.ini to on (see Bug #15245), but this doesn't matter. Please let me know, if you need more information. ------------------------------------------------------------------------ [2002-02-19 05:34:01] [EMAIL PROTECTED] No output buffering, no compression. ------------------------------------------------------------------------ The remainder of the comments for this report are too long. To view the rest of the comments, please view the bug report online at http://bugs.php.net/15613 -- Edit this bug report at http://bugs.php.net/?id=15613&edit=1