Problem using readfile()

From: Date: Tue, 06 Mar 2001 22:10:25 +0000
Subject: Problem using readfile()
Groups: php.windows 
Request: Send a blank email to php-windows+get-5854@lists.php.net to get a copy of this message
Hi, I'm trying to use readfile to send a file to the browser. The code I'm using is: header("Content-length: $size"); header("Content-type: $type"); header("Content-disposition: attachment;filename=$filename"); readfile($filename); It works fine for very small files, but for larger files it seems to send the first 600 bytes and then hang... I tried with both IE and Netscape and have the same problem. I'm using Apache 1.3.14 and PHP/4.0.4pl1 on Win2000 (using the PHP module for Apache) Any hints appreciated. Thanks! --Matias If you reply via email, please remove the -nospam- from the address.

« previous php.windows (#5854) next »