|
Posted by C. on 09/07/07 13:59
On 6 Sep, 14:41, Tedois <thiago.po...@gmail.com> wrote:
> Hey guys,
>
> I'm having trouble generating a report in fpdf. It's huge and taking a
> *lot* of time, causing timeouts. I've tried everything in fpdf without
> much success. I can't break the report into smaller pieces nor change
> it.
>
> What I want to do now is create another process that generates the
> report, and the php app to keep "asking" if the report is ready and
> when it is, just show it.
>
> Now, how am I supposed to do that? Is it possible to be done? SOAP?
> XML-RPC? Any ideas?
Any of the above - but you have to work out how to spawn the other
process safely -but that's a FAQ - try google for more info.
Personally I'd use a display page which launches the generator and
contains an AJAX connection to a poller which monitors the report
generator - but remember that it needs to be a 2 way connection
between the poller and the report generator (or tie it into the
session) otherwise you're likely to get too many processes spawned.
C.
[Back to original message]
|