Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]
I'm writing script that will read a file location from a database, and then allow the user to download it. To do this, I set headers as follows, where $ft, $fn, and $fs are the file type, file name, and file size, respectively:Code: Select all
header ("Content-Type: application/$ft");
header ("Content-Disposition: attachment; filename=$fn");
header ("Content-Length: $fs");Does anyone know a way around this, or perhaps something I'm doing wrong?
Jcart | Please use
Code: Select all
andCode: Select all
tags where appropriate when posting code. Read: [url=http://forums.devnetwork.net/viewtopic.php?t=21171]Posting Code in the Forums[/url][/color]