QUOTE(Flycakes @ Mar 26 2010, 06:29 AM)
Hia
I’m trying to get my webpage button to start a exe from my web server but failing badly, I’m using Wamp Server to host off my pc the idea being i can put my games dedicated server into the directory and have a link on the webpage to start it up or close it down,
this is my code
<a href="file:\\\C:\wamp\www\upload\LFS.exe" class="navbar"><img src="http://My.IP.00.000/files/pic/lfs.jpg" width="100" height="51" border="2" alt="Lfs" /></a>
basically this will ether not work at all or will ask to download onto the pc instead of running it on the server
any help will be much appreciated thanks...
You need to have a web page that controls starting this application, in a directory that is password-protected. In php pseudocode, in Unix terms you need something like:
CODE
<?php
// start my games server
shell_exec("/bin/gamesserver &");
echo "Started!";
?>
But you will have to investigate the Doze version of running in the background (the &), and read the php documentation. You have to redirect the output (stdout?) or php will wait for it to finish, or something, but you will have to work out how to do that on Doze.
To stop the server is easier, you need to read its documentation to find out how to do it.