Link Worth

Continue script execution on client disconnection

Written on October 3, 2007 – 11:00 pm | by Prakash Thapa |

To continue the script execution on client disconnection, you can use a function provided by PHP called ‘ignore_user_abort’. This function sets whether on client disconnect, should script execution be continued or aborted. Calling the function with the parameter set to ‘TRUE’ should ignore user disconnection and continue with script execution.

<?php
ignore_user_abort(TRUE);
?>

When finished you may again set the value to FALSE to allow the script to halt on client disconnect.

<?php
ignore_user_abort(FALSE);
?>

Related Posts

Put your related posts code here

Post a Comment

About Me

I am Prakash Thapa a Freelancer Web Programmer and this is my personal blog. Since from the beginiing of my journey in this Web World I have learned so many things by self-study. And have completed so many web-projects. Currently I am running my own web-house "ITWeb Developer" at Kathmandu, Nepal... More

Want to subscribe?

 Subscribe in a reader Or, subscribe via email:
Enter your email address:  

Our Sponsors


Translate This Blog

English flagItalian flagGerman flagSpanish flagFrench flagPortuguese flagJapanese flagKorean flagChinese flagArabic flagRussian flag
Find entries :