Jamesking56 Posted November 10, 2009 Report Share Posted November 10, 2009 How do I force it so that when a PHP page is viewed it pops up with a download box for a .HTML file download? (instead of displaying the HTML file) Link to comment Share on other sites More sharing options...
justsomeguy Posted November 10, 2009 Report Share Posted November 10, 2009 You can send a generic content type header to force a download. Most people probably use a content type of "application/octet-stream" for that. Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now