PHP - Excuting a file on the server

Associate
Joined
9 Oct 2006
Posts
1,945
Location
Location Location!
Hi,

Seeing as all of the gameserver control panel things are really money taxing I figured I would write my own. To control the servers (mainly game) that I run off the server downstairs.

I have a lot of experience with PHP working with it for 2 years odd. But this has really stumped me, maybe its the fact I only have time to even look at it at 3am in the morning ;)

I got as far as

PHP:
exec('C:\server.exe');

I checked safe mode settings and they are all off but it doesn't work for me still, and im stuck.

Any help would be appreciated, or anyone who can steal a couple of lines out of an existing cpanel whch starts/stops processes (in windows)
 
If you're running Apache (as a service), and you're on XP (or Vista) try going to

Start -> Run -> Services.msc -> ...your apache service name... -> Properties -> Log On -> and tick "Allow service to interact with desktop", then restart apache

Worked for me.
 
Last edited:
If you're running Apache (as a service), and you're on XP (or Vista) try going to

Start -> Run -> Services.msc -> ...your apache service name... -> Properties -> Log On -> and tick "Allow service to interact with desktop", then restart apache

Worked for me.

You are a star :) Thanks mate, works perfectly now.
icon14.gif
icon14.gif
 
Back
Top Bottom