You are here: Re: Let script conitnues even users close their browser « PHP Programming Language « IT news, forums, messages
Re: Let script conitnues even users close their browser

Posted by petersprc on 10/22/63 11:59

Try the ignore_user_abort function. For example:

ignore_user_abort(true); // Continue executing if disconnected
set_time_limit(86400); // 24 hour limit

duzhidian@gmail.com wrote:
> Hello All,
>
> I am using Linux, php and mysql.
>
> When I run my script, it will take a very long time. I find when users
> close their browsers, my script stops either.
> What I want to do is let the script continue running and send an email
> at to them.
>
> How can I successfully do that even if users close their browsers?
>
> Thanks.
>
> Z. D.

 

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

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