PHP Detect Service

  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

Post 3+ Months Ago

Does anybody know if there is a way to detect running services on a machine with PHP? I'm just trying to get around a bug with something and it also interests me.
  • Rincewind
  • Newbie
  • Newbie
  • User avatar
  • Posts: 10
  • Loc: Glasgow, Scotland

Post 3+ Months Ago

It would depend on the permissions that php has on your box, but something like:
PHP Code: [ Select ]
$service =   shell_exec('ps -x');

This would give you all the services running and their PID.
  • PolishHurricane
  • Mastermind
  • Mastermind
  • User avatar
  • Posts: 1585

Post 3+ Months Ago

I was trying to find a way to do it internally with PHP, but if that's the only way, I guess so... cheers

Post Information

  • Total Posts in this topic: 3 posts
  • Users browsing this forum: No registered users and 68 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.