How can I know what processes running in my computer by PHP?

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

Post April 20th, 2004, 7:14 pm

I want to know what processes are running in my computer by PHP on Window platform. Is there anybody can help me or give me some advices about it? Thanks so much
Carol
  • Anonymous
  • Bot
  • No Avatar
  • Joined: 25 Feb 2008
  • Posts: ?
  • Loc: Ozzuland
  • Status: Online

Post April 20th, 2004, 7:14 pm

  • _Leo_
  • Proficient
  • Proficient
  • User avatar
  • Joined: Feb 17, 2004
  • Posts: 279
  • Loc: Buenos Aires, Argentina
  • Status: Offline

Post April 20th, 2004, 7:38 pm

http://www.php.net/manual/en/ref.pcntl.php

There you will find some functions for child process control. If you need to know about foreign process, you will have to read the /proc filesystem, as long as you are running PHP over Unix like OS.
  • Carol
  • Newbie
  • Newbie
  • No Avatar
  • Joined: Apr 19, 2004
  • Posts: 14
  • Loc: Indonesia
  • Status: Offline

Post April 21st, 2004, 3:00 am

I aready read it but actualy the function proc_get_status only give status of process when I aready know that process, but my problem is listing all foreign processes in my computer. Could you help me or give me some advices? Thanks alot.
Carol
  • _Leo_
  • Proficient
  • Proficient
  • User avatar
  • Joined: Feb 17, 2004
  • Posts: 279
  • Loc: Buenos Aires, Argentina
  • Status: Offline

Post April 21st, 2004, 6:27 am

Well, in that case you have process information in the /proc filesystem. You will find descriptions about proc structure in the net. ie : http://www.linuxgazette.com/issue46/fink.html

BUT. I'm not sure about the security constrains you will find. The webserver process user may not have permission to get that information. AND, the proc filesystem is not availabel in all platforms and operating systems.

Post Information

  • Total Posts in this topic: 4 posts
  • Users browsing this forum: webspace and 124 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
 
 

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