Jump to content

[SOLVED] no browser save dialog when using Content-Disposition header


allasso

Recommended Posts

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

 

 

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.