Dysan Posted November 14, 2007 Share Posted November 14, 2007 Using PHP, how do I display the download dialog, in order to download a file, upon a page being accessed? Quote Link to comment Share on other sites More sharing options...
cooldude832 Posted November 14, 2007 Share Posted November 14, 2007 look at the header() functions for specifcs on this Quote Link to comment Share on other sites More sharing options...
jabbaonthedais Posted November 14, 2007 Share Posted November 14, 2007 I replied to your other thread. But you just need to use a header: header("Content-Type: application/force-download"); Quote Link to comment Share on other sites More sharing options...
Dysan Posted November 14, 2007 Author Share Posted November 14, 2007 So how do I display the download dialog upon accessing the page, in order to save/download a file from the server contained at the following path: localhost/upload/mp3_file.mp3 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.