The Web Design Group

... Making the Web accessible to all.

Welcome Guest ( Log In | Register )

 
Reply to this topicStart new topic
> How to make a webpage load a .exe from server?, how to load a dedicated game server's exe remotly from a webpage
Flycakes
post 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...


User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Darin McGrew
post 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.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Flycakes
post Mar 26 2010, 04:38 AM
Post #3





Group: Members
Posts: 6
Joined: 25-March 10
Member No.: 11,492



thanks.
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Christian J
post Mar 26 2010, 03:04 PM
Post #4


.
********

Group: WDG Moderators
Posts: 9,630
Joined: 10-August 06
Member No.: 7



See http://htmlhelp.com/faq/html/design.html#run-program
User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post
Brian Chandler
post Mar 26 2010, 11:23 PM
Post #5


Jocular coder
********

Group: Members
Posts: 2,460
Joined: 31-August 06
Member No.: 43



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.

User is offlinePM
Go to the top of the page
Toggle Multi-post QuotingQuote Post

Reply to this topicStart new topic
1 User(s) are reading this topic (1 Guests and 0 Anonymous Users)
0 Members:

 



- Lo-Fi Version Time is now: 29th March 2024 - 12:35 AM