Posted By

Zwendel on 10/23/09


Tagged

show inline file open dialog


Versions (?)

Who likes this?

1 person have marked this snippet as a favorite

latavish


Display file in browser or show open/save dialog first


 / Published in: PHP
 

  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  

You need to login to post a comment.