|
Posted by Cafer Simsek on 07/20/05 21:28
Sorry
it was
header("Content-Disposition: inline; filename=\"". $filename ."\"");
-Cafer
On 7/20/05, Cafer Simsek <cafers@gmail.com> wrote:
> Hi,
>
> You may try that;
>
> header("Content-Disposition: attachment; filename=\"". $filename ."\"");
>
> Best Regards
>
> -Cafer
>
> On 7/20/05, Christopher J. Umina <uminac@fritzilldo.com> wrote:
> > 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
> >
> > --
> > PHP General Mailing List (http://www.php.net/)
> > To unsubscribe, visit: http://www.php.net/unsub.php
> >
> >
>
Navigation:
[Reply to this message]
|