Re: [PHP3] Connection didn't stop between browse with apache

From: Date: Fri, 16 Jun 2000 01:13:02 +0000
Subject: Re: [PHP3] Connection didn't stop between browse with apache
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-2024@lists.php.net to get a copy of this message
In article <001201bfd5f1$45f9d9e0$7d00a8c0@matt>, matt@asichip.com ("MattLee") wrote: > I use the below code for send a file to browse.=20 > The browse can receive the file and content also correct.=20 > But the browse still connect with web server. (browse's cursor is busy = > icon) > This problem only happen on IE5.=20 > The N4 and IE4 didn't have this.=20 > Why ?=20 > Anyone can help me?=20 > Thank .....^_^=20 > System: RedHat Linux 6.2, PHP4, Apache 1.3.12 > <?=20 > header("Content-Type: application/octet-stream");=20 > header("Content-Disposition: attachment; filename=3Dtest.txt");=20 > echo "This is a test for download.";=20 > ?>=20 You didn't tell the browser how many bytes to expect, so it doesn't know when it's done. header("Content-length: " . strlen("This is a test for download.")); -- Richard Lynch | If this was worth $$$ to you, buy a CD US Customer Support Director | from one of the artists listed here: Zend Technologies USA | http://www.L-I-E.com/artists.htm http://www.zend.com | (this has nothing to do with Zend, duh!)

« previous php.general (#2024) next »