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? Link to comment https://forums.phpfreaks.com/topic/77370-download-on-access/ 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 Link to comment https://forums.phpfreaks.com/topic/77370-download-on-access/#findComment-391689 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"); Link to comment https://forums.phpfreaks.com/topic/77370-download-on-access/#findComment-391690 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 Link to comment https://forums.phpfreaks.com/topic/77370-download-on-access/#findComment-391696 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.