You are here: mysql timeout « PHP SQL « IT news, forums, messages
mysql timeout

Posted by brendan on 07/13/05 14:33

Hi,
I've written a cache script for our website that loads a static html
text file if the relevant mysql table hasn't been updated rather than
re-processing the entire php script and undertaking all database calls.
Wonderful! It works and delivers content much faster.
However it still relies on the initial database query to check the table
status. Unfortunately our web host reliability is not the best in the world
and sometimes (admittedly infrequently) mysql hangs or dies.

What I would like to add to the script is some way of calling the text file
if mysql takes too long to respond. Is this possible? Is there a way of
writing a php statement that determines what to do in case of a mysql
timeout?

regards,
Brendan.

 

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

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