You are here: Re: File Download dialog problem « All PHP « IT news, forums, messages
Re: File Download dialog problem

Posted by Patrick Buxton on 09/28/66 11:48

Thanks, but it still does exactly the same as before, outputs the text to
the browser!!
I just don't understand it, not just IE either, firefox doesn't force a
download either!!

"robert" <ab@no.spam-alama-ding-dong> wrote in message
news:qfZcg.1$qy5.0@fe05.lga...
>
> "Patrick Buxton" <patrick.buxton@redrow.co.uk> wrote in message
> news:Xr2dnTCd-bOgZe7ZRVnygw@pipex.net...
> | No joy with that I'm afraid, still the same result, thanks anyway
>
> try this for your header section:
>
> header('pragma:
);
> header('expires:
);
> header('cache-control: private',
);
> header('cache-control: must-revalidate, post-check=0,
ck=0' );
> header('content-disposition: attachment; filename="' . $fileName .
);
> header('content-size: ' .
);
> header('content-transfer-encoding:
);
> header('content-type:
);
> // echo out your data here
>
>

 

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

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