PDA

Click to See Complete Forum and Search --> : Launch a .exe file using php?


JamieWarren09
Nov 6th, 2009, 10:35 PM
Hi guys, I want to have a php file on my website and when people go to the php file on my site then it will launch a .exe file called tvr.exe

And if tvr.exe isnt installed then it redirects to a page called install.php


Is this possible?

Thanks

kows
Nov 7th, 2009, 12:01 AM
nope. PHP is a server side language and has no idea what a client has installed, and could never hope to launch an application on a client's machine.

look into ActiveX controls or something.

Justa Lol
Nov 24th, 2009, 01:46 PM
try flash or javascript, i'm not sure if its possible with javascript either.

kows
Nov 24th, 2009, 03:48 PM
it's not possible with either. that would be a humongous security risk.

gmiller
Nov 24th, 2009, 11:26 PM
Kows is right, it is not possible.

Justa Lol
Nov 28th, 2009, 12:49 PM
it is possible however http://archlord.webzen.net/ is a game that launches from any webbrowser from their site on your computer... it is installed on your computer and you use a webbrowser to open it, you can't open it from your own computer if you don't open it from their site.

kows
Nov 28th, 2009, 03:24 PM
that's still not launching an exe using javascript, flash, or php -- it's simply having a way that a browser can interact with a program. if I type "aim:" as the protocol in any of my browser address bars and supply a few arguments, I can open an aim message to someone. or I can add someone to my aim friend list. or I can do a lot of other aim-related things.

activeX controls can sort of do the same thing.

I'm sure whatever they're doing is just something like that ;)

Zeuz
Nov 28th, 2009, 04:15 PM
Make application which reads your website, then make php website where is control panel and if you press button it sends some word which your application can know as command and put application launch .exe file.

E: If you launch installed .exe file from website then your .exe file must be made to know command from navigation bar.

Example: MyProgram://Launch/-Start

Justa Lol
Nov 29th, 2009, 01:30 AM
thats a good idea, i think i'm gonna do something like that sometime.