I\'m trying to force a download of a protected zip file (I don\'t want people to access it without logging in first.
I have the function created for the login
login
try this to find if there is any error
error_reporting(0);
Do not print anything before writing the headers; Run an ob_start() to of your script, after the code edit your headers and then ob_flush() and ob_clean()