You are here: Content Header « PHP « IT news, forums, messages
Content Header

Posted by "Christopher J. Umina" on 07/20/05 17:32

Hello!

I currently have a script which streams data out of a MySQL database,
and prints the content headers correctly, however, when I use the
following line:

header("Content-Disposition: attachment; filename=\"". $filename ."\"");

it prompts the user to download the file each time they go to the site.
The problem is, I want the filename to be in the header, incase
somebody right clicks and saves the file, but I don't want the user to
be prompted to download the file when they're just trying to look at
it. Does anybody know a way I can achieve this result?

Thank you!
Christopher J. Umina

 

Navigation:

[Reply to this 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

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