Re: Problem with timeout

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



4 maj 2007 kl. 23.48 skrev Richard Lynch:

On Fri, May 4, 2007 3:42 pm, Frank Arensmeier wrote:
I still think that the best way to go is to not involve Apache at all
when running the script. Because the script already has functions for
output logging etc. it is no big deal to change the code so that it
can be run from PHP CLI.

Once you said it was something you did weekly, it's pretty much a
given that you ought to use a cron job with PHP CLI and take Apache
out of the picture entirely...

You are absolutely right. I might also mention that running the script under PHP CLI did two things:

1) No problems with timeout settings anymore.
2) The script takes 10 minutes less time to finish

However, I realized that PHP CLI is version 4.4.4 whereas the Apache module PHP is version 5.something. After some modifications to the script, it is running flawlessly now.

Actually, even if it's for surfer interaction, anything taking that
long should probably be turned into a "jobs" oriented architecture,
and queue up the work for a cron job later, with user email
notification when it's done.

NOBODY wants to sit that long watching the browser do nothing.

I totally agree. The script was never ment to be user-triggered. Instead, the archiving process takes place weekly.

Thanks you all! Have a nice weekend.

//frank

--
Some people have a "gift" link here.
Know what I want?
I want you to buy a CD from some indie artist.
http://cdbaby.com/browse/from/lynch
Yeah, I get a buck. So?


--
PHP General Mailing List (http://www.php.net/)
To unsubscribe, visit: http://www.php.net/unsub.php


[Index of Archives]     [PHP Home]     [Apache Users]     [PHP on Windows]     [Kernel Newbies]     [PHP Install]     [PHP Classes]     [Pear]     [Postgresql]     [Postgresql PHP]     [PHP on Windows]     [PHP Database Programming]     [PHP SOAP]

  Powered by Linux