im trying to view files inline in IE but have the following problem
1, I pass the script the filename that I want to view, like
h++p://localhost/script.php?file=hello.ppt
2, after some logic (security, mime-type switch statement) script.php looks like this
//Begin writing headers
header('Content-type: '.$ctype.';\r\n');
header('Content-Disposition: inline; filename='.$file.';\r\n');
@readfile($file_location);
3, I run the script through IE - everthing works ok - the ppt is open inline great! but when I do a save as from IE's menu it picks up the filename as
script.php?file=hello.ppt or script.ppt instead of hello.ppt
very frustrating
any ideas?