Using Headers For Download System
Posted: Thu Jun 16, 2005 4:01 pm
I'm trying to use headers to point the browser to a file download, but I run into the headers already sent error. To rectify this I tried using output buffering, but when I tried this the file would download but would contain an extra 1.6kb of data and would be corrupt(the 1.6kb extra is the size of my style.css file)
To give some background, I have an index.php file which includes my downloads.php file.
Any insight would be appreciated
To give some background, I have an index.php file which includes my downloads.php file.
Any insight would be appreciated