browser won't display save dialog using Content_Disposition
Posted: Fri Nov 28, 2008 2:22 pm
Hello,
I have also tried to get the browser to display a save dialog using (again, first thing on the page):
<?php
header('Content-type: text/html');
header('Content-Disposition: attachment; filename="file.html"');
readfile('file.html');
?>
I get no errors, it just doesn't work.
any ideas?
Thanks, Allasso
I have also tried to get the browser to display a save dialog using (again, first thing on the page):
<?php
header('Content-type: text/html');
header('Content-Disposition: attachment; filename="file.html"');
readfile('file.html');
?>
I get no errors, it just doesn't work.
any ideas?
Thanks, Allasso