Re: Content Header

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



Christopher J. Umina wrote:
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.

Then it works. :-)

It sounds like you meant to use inline instead of attachment.

Chris

--
Chris Shiflett
Brain Bulb, The PHP Consultancy
http://brainbulb.com/

--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux