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
browser won't display save dialog using Content_Disposition
Moderator: General Moderators
Re: browser won't display save dialog using Content_Disposition
Just because you don't see any errors doesn't mean there are any.
I see two possible reasons why it doesn't work. Put a ini_set("display_errors", 1) before the header() calls and see if you get any messages then.
I see two possible reasons why it doesn't work. Put a ini_set("display_errors", 1) before the header() calls and see if you get any messages then.
Re: browser won't display save dialog using Content_Disposition
thanks much, I'll try that.
Re: browser won't display save dialog using Content_Disposition
seems to work now. Inexperience the problem no doubt.
Thanks much.
Allasso
Thanks much.
Allasso