note 51148 added to function.getmypid
| From: | Pure-PHP at osu1 dot php dot net | Date: | Mon, 21 Mar 2005 22:26:52 +0000 |
| Subject: | note 51148 added to function.getmypid | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-86761@lists.php.net to get a copy of this message | ||
You can use this function also to avoid more than one instance of your app.
You can also use this class.
http://www.pure-php.de/node/20
Usage:
<?php
inlude("ProcessHandler.class.php");
if(ProcessHandler::isActive()){
die("Already running!\n";);
}else{
ProcessHandler::activate();
//run my app
}
?>
----
Manual Page -- http://www.php.net/manual/en/function.getmypid.php
Edit -- http://master.php.net/manage/user-notes.php?action=edit+51148
Delete: added to the manual -- http://master.php.net/manage/user-notes.php?action=delete+51148&report=yes&reason=added+to+the+manual
Delete: bad code -- http://master.php.net/manage/user-notes.php?action=delete+51148&report=yes&reason=bad+code
Delete: spam -- http://master.php.net/manage/user-notes.php?action=delete+51148&report=yes&reason=spam
Delete: useless -- http://master.php.net/manage/user-notes.php?action=delete+51148&report=yes&reason=useless
Delete: other reasons -- http://master.php.net/manage/user-notes.php?action=delete+51148&report=yes
Reject -- http://master.php.net/manage/user-notes.php?action=reject+51148&report=yes
Search -- http://master.php.net/manage/user-notes.php