Display file in browser or show open/save dialog first


/ Published in: PHP
Save to your folder(s)



Copy this code and paste it in your HTML
  1. /*Display file in brower*/
  2. header('Content-Disposition: inline;');
  3.  
  4. /*Show the open/save/cancel dialog*/
  5. header('Content-Disposition: attachment;');

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.