You are here: How to handle PHP execution timeouts gracefully? « PHP Programming Language « IT news, forums, messages
How to handle PHP execution timeouts gracefully?

Posted by Joannes Vermorel on 03/21/07 08:31

We have developed an open-source eCommerce sales forecasting add-on in
PHP (see link below) that requires usually more than a few seconds to
complete because the process involves some Web Services
communications.
http://community.lokad.com/PhpSalesForecasting.ashx

Yet, in shared hosting with short PHP execution timeouts, our script
may not terminate (being killed by the web server).

Our concern is not the timeout in itself, it's the fact that this
situation is very confusing for the user who may not even be aware
that a timeout has been encountered and who may experience random bugs
due to this timeout.

Thus we need to handle gracefully the PHP execution timeouts by
displaying appropriate and meaningful error messages.

Do anyone knows how to do that?

Thanks in advance,
Joannès
http://www.lokad.com, sales forecasting

 

Navigation:

[Reply to this 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

Сайт изготовлен в Студии Валентина Петручека
изготовление и поддержка веб-сайтов, разработка программного обеспечения, поисковая оптимизация