subhajit Posted January 21, 2008 Share Posted January 21, 2008 I want to create a button by clicking which files can be downloaded from a server.......just like we do in an email ... the download option is clicked and we are given the choice where to save and the file is downloaded.....I want to implement this using PHP only Quote Link to comment https://forums.phpfreaks.com/topic/87004-ghow-to-implement-the-download-option-in-a-html-page-using-php/ Share on other sites More sharing options...
Stooney Posted January 21, 2008 Share Posted January 21, 2008 All you need is html, php isn't necessary unless you echo the link. echo '<a href="http://site.com/file.ext">Download</a>'; Quote Link to comment https://forums.phpfreaks.com/topic/87004-ghow-to-implement-the-download-option-in-a-html-page-using-php/#findComment-444937 Share on other sites More sharing options...
vbnullchar Posted January 21, 2008 Share Posted January 21, 2008 check out this script i wrote... http://yoshi.zxq.net/2007/11/08/simple-php-file-download-script/download-script-targz-format/ Quote Link to comment https://forums.phpfreaks.com/topic/87004-ghow-to-implement-the-download-option-in-a-html-page-using-php/#findComment-444947 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.