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

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

Post 3+ Months Ago

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
  • _Leo_
  • Proficient
  • Proficient
  • User avatar
  • Posts: 279
  • Loc: Buenos Aires, Argentina

Post 3+ Months Ago

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
  • Carol
  • Posts: 14
  • Loc: Indonesia

Post 3+ Months Ago

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
  • Posts: 279
  • Loc: Buenos Aires, Argentina

Post 3+ Months Ago

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: No registered users and 48 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.