Re: Header() function and redirect
| From: | * R&zE: | Date: | Thu, 30 Aug 2001 16:41:04 +0000 |
| Subject: | Re: Header() function and redirect | ||
| References: | 1 | Groups: | php.general |
| Request: | Send a blank email to php-general+get-65328@lists.php.net to get a copy of this message | ||
<Original message>
From: Zhu George-CZZ010 <George.Z.Zhu@motorola.com>
Date: Thu, Aug 30, 2001 at 11:27:41AM -0500
Message-ID: <1FA6C7249817D4119B9800D0B73E99A6050A79FC@il02exm27.comm.mot.com>
Subject: RE: [PHP] Header() function and redirect
> But I have to wait for the application to finish. The idea is: the application will take the
> file, and convert it into PDF file (it takes more than 30 seconds generally), then display the
> generated PDF file.
>
> I am just wondering if I can use "Header()" to redirect to a general php page, then
> in that page, redirect to the PDF file.
>
> Thanks,
> George
</Original message>
<Reply>
Ah... well...
Don't know what you exactly mean, but you either have to wait 'till
the processing has been done (which, like I said, takes too long to
wait for), or you can use one of the following options:
- You can have an email send to the user telling him/her that the
PDF is ready. You can either send it as an attachment, or just
send a URL of the page where the PDF can be downloaded.
- You can have the user redirected to a page with a download link on
it. Then you still have to problem, though, that the PDF isn't
ready yet at the moment the user gets that link.
But you get back to what you're wondering ("if I can use "Header()"
to redirect to a general php page"); Yes, ofcourse... you can do it
before or after the processing. But! You can't do anything about
client-timeouts. And let's be honest... It's not that weird that a
browser gives up if it doesn't get any answer for more than 30
seconds. It's a pretty long timeout already.
</Reply>
--
* R&zE:
-- »»»»»»»»»»»»»»»»»»»»»»»»
-- Renze Munnik
-- DataLink BV
--
-- E: renze@datalink.nl
-- W: +31 23 5326162
-- F: +31 23 5322144
-- M: +31 6 21811143
--
-- Stationsplein 82
-- 2011 LM HAARLEM
-- Netherlands
--
-- http://www.datalink.nl
-- ««««««««««««««««««««««««