file downloads

From: Date: Wed, 16 Aug 2000 00:22:54 +0000
Subject: file downloads
Groups: php.general 
Request: Send a blank email to php-general+get-11890@lists.php.net to get a copy of this message
Does anyone know the proper order and use of headers to force a file download instead of display? I have tried every combination I can find on the php.net docs and several other php sites. Each time I try with my test file: leopard.gif, the filename that comes up in the dialog box is the php file I want to force the download: download.phtml, and the size of the file it downloads is always 12 bytes, even though its a 46k file. Thanks for help. Robert

« previous php.general (#11890) next »