Please login or register.

Login with username, password and session length
Advanced search  

News:

(2009-05-04) The Rules and Terms of Service have been updated. Please make sure you read, understand, and follow them.

Author Topic: PHP Processes  (Read 274 times)

Active users: bruno67 (1), jagat21 (1)
0 Members and 1 Guest are viewing this topic.

bruno67

  • Irregular
  • Offline Offline
  • Posts: 14
    • View Profile
PHP Processes
« on: September 15, 2007, 12:48:53 AM »

I have a cronjob triggering a php script that takes several minutes to accomplish. I need to prevent multiple triggering by the cronjob mulfunctioning. So I would like a clean way to know how many instances of a certain php are currently working on the server. is there a server variable for that? if not, how do I know (via php) how many concurrent accesses are there to a certain php page? for example in mysql (the "SHOW PROCESSLIST" command), but I need a similar function for the php page iself.
thank you for your help
Logged

jagat21

  • Irregular
  • Offline Offline
  • Posts: 27
    • View Profile
Re: PHP Processes
« Reply #1 on: September 15, 2007, 12:54:43 AM »
Hi,

Have a look at PHP Process Control Functions.

http://in.php.net/pcntl

this might help u.
Logged

PHP Freaks Forums

 
 
 

Page created in 0.041 seconds with 20 queries.