Re: Getting the process ID

From: Date: Thu, 24 Mar 2005 23:54:26 +0000
Subject: Re: Getting the process ID
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-211532@lists.php.net to get a copy of this message
Joshua Beall wrote:
I am doing some work where I want to do locking, and prevent scripts from running in parallel. I see that I could use the semaphore mechanism, but I'd like for my code to be portable, and that extension is not enabled in many places.
Sort of defeats the whole concept of a web server, but to answer just your process id question, use getmypid() -Rasmus

« previous php.general (#211532) next »