ID:               22154
 Updated by:       [EMAIL PROTECTED]
 Reported By:      [EMAIL PROTECTED]
-Status:           Open
+Status:           Feedback
 Bug Type:         Apache related
 Operating System: Linux 2.4.18-10
 PHP Version:      4.3.0
 New Comment:

Hmm...do you have zlib.output_compression=On ?
Or output_handler=ob_gzhandler ?? 
(in your php.ini)

What is your memory_limit setting in php.ini?

And does the bug occur with any browser..? 



Previous Comments:
------------------------------------------------------------------------

[2003-02-11 15:55:38] [EMAIL PROTECTED]

even with the simple fpassthru() to load content into the browser
window?

<?php

session_start();

$fp = fopen('wordlist.txt','r');

if ($fp)
{
  header("Cache-control: public");
  header("Content-Type: application/octet-stream");
  header("Content-Length:
".(string)filesize("/home/joem/public_html/php/wordlist.txt"));
  header("Content-Disposition: attachment;
filename=\"wordlist.txt\"");
  header("Connection: close");
  fpassthru($fp);
  fclose($fp);
}

else
{
  print "File not found\n";
}

?>

Doesn't work either.

------------------------------------------------------------------------

[2003-02-11 15:43:15] [EMAIL PROTECTED]

I think I've had same problem myself too. I got it solved
by sending the content-length header with the size of the file to be
downloaded..



------------------------------------------------------------------------

[2003-02-11 13:06:53] [EMAIL PROTECTED]

Interesting...at least my test case script sometimes responds now.  Not
often though.  Here's a trace:

GET /php/test2.php HTTP/1.1
Host: <client hostname>
User-Agent: Mozilla/5.0 Galeon/1.2.5 (X11; Linux i586; U;) Gecko/0
Accept:
text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,video/x-mng,image/png,image/jpeg,image/gif;q=0.2,text/css,*/*;q=0.1

Accept-Language: en
Accept-Encoding: gzip, deflate, compress;q=0.9
Accept-Charset: ISO-8859-1, utf-8;q=0.66, *;q=0.66
Keep-Alive: 300
Connection: keep-alive

HTTP/1.1 200 OK
Date: Tue, 11 Feb 2003 19:50:35 GMT
Server: IBM_HTTP_SERVER/1.3.19.2  Apache/1.3.20 (Unix) PHP/4.3.1-dev
X-Powered-By: PHP/4.3.1-dev
Set-Cookie: PHPSESSID=7691fe3e49b7a476fca1e0f32bc6f33e; expires=Tue,
11-Feb-03 20:00:35 GMT; path=/; domain=.<domain>.
Expires: Thu, 19 Nov 1981 08:52:00 GMT
Cache-Control: no-store, no-cache, must-revalidate, post-check=0,
pre-check=0
Pragma: no-cache
Keep-Alive: timeout=15, max=100
Connection: Keep-Alive
Transfer-Encoding: chunked
Content-Type: text/html

0

------------------------------------------------------------------------

[2003-02-11 11:30:50] [EMAIL PROTECTED]

I just finished building the PHP Stable 200302111630 snapshot for IBM
HTTP Server, it built successfully.  Thanks!  Moving on to trying out
my scripts again...

------------------------------------------------------------------------

[2003-02-11 10:57:07] [EMAIL PROTECTED]

As I said, downloads work up to about 1MB with the sessions.   Larger
than that, they fail. Even so, using headers, as long as I generate all
my headers before displaying anything it should all work.

------------------------------------------------------------------------

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/22154

-- 
Edit this bug report at http://bugs.php.net/?id=22154&edit=1

Reply via email to