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 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>'; 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/ 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
Archived
This topic is now archived and is closed to further replies.