How to make a webpage load a .exe from server?, how to load a dedicated game server's exe remotly from a webpage |
How to make a webpage load a .exe from server?, how to load a dedicated game server's exe remotly from a webpage |
Flycakes |
Mar 25 2010, 04:29 PM
Post
#1
|
Group: Members Posts: 6 Joined: 25-March 10 Member No.: 11,492 |
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... |
Darin McGrew |
Mar 25 2010, 07:53 PM
Post
#2
|
WDG Member Group: Root Admin Posts: 8,365 Joined: 4-August 06 From: Mountain View, CA Member No.: 3 |
This looks like web server configuration to me. I'm moving it to the appropriate forum.
|
Flycakes |
Mar 26 2010, 04:38 AM
Post
#3
|
Group: Members Posts: 6 Joined: 25-March 10 Member No.: 11,492 |
thanks.
|
Christian J |
Mar 26 2010, 03:04 PM
Post
#4
|
. Group: WDG Moderators Posts: 9,656 Joined: 10-August 06 Member No.: 7 |
|
Brian Chandler |
Mar 26 2010, 11:23 PM
Post
#5
|
Jocular coder Group: Members Posts: 2,460 Joined: 31-August 06 Member No.: 43 |
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. |
Lo-Fi Version | Time is now: 25th April 2024 - 10:27 PM |