[ciapug] header problem
Matthew Nuzum
newz at bearfruit.org
Fri Apr 3 09:56:05 CDT 2009
On Fri, Apr 3, 2009 at 9:15 AM, Dave J. Hala Jr. <dave at 58ghz.net> wrote:
> I gave the readfile thing a try, same issue. However, I did manage to
> get an error message. I got a "couldn't find or couldn't open" error
> message that listed the script name. (was tough to tell the exact error
> as an end user was trying to read it to me)
>
> When I narrowed the date range so that the report ran faster, it worked
> fine. It seemed to be problematic when the execution time was above 2
> minutes. I'm going look for an ssl timeout, a session timeout or maybe
> in the php.ini for script execution time.
>
What you can do is to fork the external process as a background task
and then let the page refresh periodically checking if the output file
exists. You can actually do this via ajax. It seems like it would
generate a lot of hits to the server but the hits are very lightweight
because they just check if the file is there and then return
instantly.
Here's a good explanation:
http://nsaunders.wordpress.com/2007/01/12/running-a-background-process-in-php/
--
Matthew Nuzum
newz2000 on freenode, skype, linkedin, identi.ca and twitter
More information about the ciapug
mailing list