[PHP] file downloads From: Robert J. Cissell (rcissell <email protected>)
Date: 08/15/00

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