Reply to Re: Problem using FPDF

Your name:

Reply:


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]


Удаленная работа для программистов  •  Как заработать на Google AdSense  •  England, UK  •  статьи на английском  •  PHP MySQL CMS Apache Oscommerce  •  Online Business Knowledge Base  •  DVD MP3 AVI MP4 players codecs conversion help
Home  •  Search  •  Site Map  •  Set as Homepage  •  Add to Favourites

Copyright © 2005-2006 Powered by Custom PHP Programming

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация