Get PID of process running in PHP

  • Carol
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Apr 19, 2004
  • Posts: 14
  • Loc: Indonesia
  • Status: Offline

Post April 22nd, 2004, 11:18 pm

I want to get PID (process identify) of process running in a computer by PHP. Could you help me?
Thanks.
Carol
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 22nd, 2004, 11:18 pm

  • Scorpius
  • Proficient
  • Proficient
  • User avatar
  • Joined: Mar 20, 2004
  • Posts: 401
  • Loc: Scorpion Hole
  • Status: Offline

Post April 23rd, 2004, 3:16 am

Well, I don't know if this is what you are lookin for but this will work on linux.
Code: [ Select ]
<?php
$output = `ps -aux`;
echo "<pre>$output</pre>";
?>
  1. <?php
  2. $output = `ps -aux`;
  3. echo "<pre>$output</pre>";
  4. ?>

Post Information

  • Total Posts in this topic: 2 posts
  • Users browsing this forum: No registered users and 167 guests
  • You cannot post new topics in this forum
  • You cannot reply to topics in this forum
  • You cannot edit your posts in this forum
  • You cannot delete your posts in this forum
  • You cannot post attachments in this forum
 
cron
 

© 2011 Unmelted, LLC. Ozzu® is a registered trademark of Unmelted, LLC.