Go Back   CodingForums.com > :: Server side development > PHP

Before you post, read our: Rules & Posting Guidelines

Reply
 
Thread Tools Rate Thread
Enjoy an ad free experience by logging in. Not a member yet? Register.
Old 08-27-2006, 05:05 PM   PM User | #1
karzac
New to the CF scene

 
Join Date: Aug 2006
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
karzac is an unknown quantity at this point
Stopping a Windows Service

Hi, i have xampp (apache) on my server, and id like to be able to stop some services (game servers runnings as a service) using php if it is possible, could some one help me out please

Regards

Last edited by karzac; 08-27-2006 at 05:16 PM..
karzac is offline   Reply With Quote
Old 08-27-2006, 05:18 PM   PM User | #2
marek_mar
Sensei


 
Join Date: Aug 2003
Location: One step ahead of you.
Posts: 2,815
Thanks: 0
Thanked 3 Times in 3 Posts
marek_mar is on a distinguished road
PHP Code:
<?php
exec
('net stop service');
?>
Should do it. At least the commandline command "net stop" can stop services.
__________________
I'm not sure if this was any help, but I hope it didn't make you stupider.

Experience is something you get just after you really need it.
PHP Installation Guide Feedback welcome.
marek_mar is offline   Reply With Quote
Reply

Bookmarks

Jump To Top of Thread


Thread Tools
Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT +1. The time now is 07:05 AM.


Advertisement
Log in to turn off these ads.