Please login or register.

Login with username, password and session length
Advanced search  

News:

Get quality web hosting, virtual private servers, reseller web hosting, and dedicated servers from www.webhostfreaks.com or www.serverpowered.com!

Maintenance Notice

PHPFreaks has successfully moved to a new Dedicated Server, hosted by Server Powered. Please help support future upgrades by Donating.

Author Topic: PHP Processes  (Read 165 times)

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
Pages: [1]
 

Page created in 0.03 seconds with 18 queries.