Iyad Posted September 5, 2006 Share Posted September 5, 2006 I want to make a link that contain file (*.xls file) that when somebody click on it show "open or save or close form".I put my files in "../reports/" folder and make id or key for each files.Plese help, this problem really took my time.Thanks,Iyad Link to comment https://forums.phpfreaks.com/topic/19743-need-help-for-my-downloadable-link-please/ Share on other sites More sharing options...
Zane Posted September 5, 2006 Share Posted September 5, 2006 you can either use this PHP line on you're download page[code]header("Content-disposition: attachment; filename=yourfile.xls");[/code]or you can go to your Apache http.conf fileand add this line to the bottom of it.........and restart the server[code]AddType application/x-excel xls[/code] Link to comment https://forums.phpfreaks.com/topic/19743-need-help-for-my-downloadable-link-please/#findComment-86214 Share on other sites More sharing options...
Iyad Posted September 5, 2006 Author Share Posted September 5, 2006 ok..thanks Link to comment https://forums.phpfreaks.com/topic/19743-need-help-for-my-downloadable-link-please/#findComment-86237 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.