Get PID of process running in PHP

  • Carol
  • Newbie
  • Newbie
  • Carol
  • Posts: 14
  • Loc: Indonesia

Post 3+ Months Ago

I want to get PID (process identify) of process running in a computer by PHP. Could you help me?
Thanks.
Carol
  • Scorpius
  • Proficient
  • Proficient
  • User avatar
  • Posts: 401
  • Loc: Scorpion Hole

Post 3+ Months Ago

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 59 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
 
 

© 1998-2014. Ozzu® is a registered trademark of Unmelted, LLC.