Reply to Re: header()

Your name:

Reply:


Posted by Chris on 09/26/46 11:13

But you can design the script to redirect to a page with a JavaScript to
open a file(PDF) by using the target="_new" and then it redirects to the
home page.

CJ

"Matthew Weier O'Phinney" <matthew@garden.org> wrote in message
news:slrnd5t2a5.frg.matthew@webmaster2.garden.org...
>* 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

[Back to original 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

Π‘Π°ΠΉΡ‚ ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ Π² Π‘Ρ‚ΡƒΠ΄ΠΈΠΈ Π’Π°Π»Π΅Π½Ρ‚ΠΈΠ½Π° ΠŸΠ΅Ρ‚Ρ€ΡƒΡ‡Π΅ΠΊΠ°
ΠΈΠ·Π³ΠΎΡ‚ΠΎΠ²Π»Π΅Π½ΠΈΠ΅ ΠΈ ΠΏΠΎΠ΄Π΄Π΅Ρ€ΠΆΠΊΠ° Π²Π΅Π±-сайтов, Ρ€Π°Π·Ρ€Π°Π±ΠΎΡ‚ΠΊΠ° ΠΏΡ€ΠΎΠ³Ρ€Π°ΠΌΠΌΠ½ΠΎΠ³ΠΎ обСспСчСния, поисковая оптимизация