MSP Posted September 9, 2008 Share Posted September 9, 2008 Hello, I have a simple question regarding downloading a file from my website. I know that <a href="DownloadedFile.exe"> Download here.</a> will work to download a file, but I don't need anyone to click on "Download here." I just want the download to open when the page opens. Thank you for taking the time to help! MSP Quote Link to comment https://forums.phpfreaks.com/topic/123467-download-a-file-from-my-website/ Share on other sites More sharing options...
haku Posted September 9, 2008 Share Posted September 9, 2008 You can do this with PHP. Try that section of the forum. Quote Link to comment https://forums.phpfreaks.com/topic/123467-download-a-file-from-my-website/#findComment-637983 Share on other sites More sharing options...
jordanwb Posted September 9, 2008 Share Posted September 9, 2008 You could use a meta refresh tag or, if you want to use php: header ('location: /path/to/file'); Quote Link to comment https://forums.phpfreaks.com/topic/123467-download-a-file-from-my-website/#findComment-637991 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.