note 91972 added to function.ignore-user-abort
| From: | Anonymous at osu1 dot php dot net | Date: | Fri, 03 Jul 2009 08:38:14 +0000 |
| Subject: | note 91972 added to function.ignore-user-abort | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-157867@lists.php.net to get a copy of this message | ||
use the spiritual-coder's code below with exreme caution and do not use it unless you are an
advanced user.
first of all, such a code with no bypass point can cause infinite loops and ghost threads in server.
there must be a trick to break out the loop.
i.e. you can use if (file_exists(dirname(__FILE__)."stop.txt")) break; in the loop so if
you create "stop.txt", she script will stop execution.
also if you use set_time_limit(86400); instead of set_time_limit(0); your script will stop after one
day.
----
Server IP: 69.147.83.197
Probable Submitter: 88.254.101.169
----
Manual Page -- http://www.php.net/manual/en/function.ignore-user-abort.php
Edit -- https://master.php.net/note/edit/91972
Del: integrated -- https://master.php.net/note/delete/91972/integrated
Del: useless -- https://master.php.net/note/delete/91972/useless
Del: bad code -- https://master.php.net/note/delete/91972/bad+code
Del: spam -- https://master.php.net/note/delete/91972/spam
Del: non-english -- https://master.php.net/note/delete/91972/non-english
Del: in docs -- https://master.php.net/note/delete/91972/in+docs
Del: other reasons-- https://master.php.net/note/delete/91972
Reject -- https://master.php.net/note/reject/91972
Search -- https://master.php.net/manage/user-notes.php