|
Posted by Steve on 11/07/07 21:46
"Carsten Wesch" <cappieins@t-online.de> wrote in message
news:fgsvug$9k2$03$1@news.t-online.com...
> The test case you describe is exactly what I did, and it works properly.
>
> I tested it with a PDF document that was created using fpdf, so I don't
> understand wht's the reason for this behavior.
actually, i didn't describe fully what the test should be. your uri to the
document *IS* some.file.pdf...so your browser will want to save it as the
same. if, however, you made a script called some.file.php, and in it put:
<?
header('content-disposition: attachment; filename=some.file.pdf');
echo file_get_contents('some.file.pdf');
?>
your browser would STILL want to save it as some.file.php...which is the uri
resource name. see the difference?
[Back to original message]
|