You are here: Re: header() « PHP « IT news, forums, messages
Re: header()

Posted by Matthew Weier O'Phinney on 10/20/81 11:13

* Martín Marqués <martin@bugs.unl.edu.ar>:
> I'm having a bit of a problem understanding how the header() sends the HTTP
> headers.
>
> Here's what I want to do:
>
> 1) Send a PDF file which will be printed in the client (the client will read
> it and print it if he wants to.
> 2) Redirect to the main page of the aplication.

You can't do both; you can do one or the other. A Location header will
always redirect, even if a content-type has been sent.

--
Matthew Weier O'Phinney | WEBSITES:
Webmaster and IT Specialist | http://www.garden.org
National Gardening Association | http://www.kidsgardening.com
802-863-5251 x156 | http://nationalgardenmonth.org
mailto:matthew@garden.org | http://vermontbotanical.org

 

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

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