You are here: Re: register_shutdown_function and timeouts « PHP Programming Language « IT news, forums, messages
Re: register_shutdown_function and timeouts

Posted by Peter van Schie on 10/06/05 19:19

alex bazan wrote:
> I came across this function as i got a problem with very long-running
> scripts which use transactions...
>
> in the php manual i do not see clearly stated if the function defined
> will be executed if a timeout is reached.
>
> It states:
> "Registers the function named by function to be executed when script
> processing is complete."
>
> So what happens when the script processing is uncomplete because of a
> timeout?
>

The function you specify with register_shutdown_function gets executed
on timeout or exit. Just note you cannot echo or print anything anymore
after a timeout occured.

Peter.
--
http://www.phpforums.nl

 

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

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