PDA

View Full Version : .exe's in web applications



face_master
01-02-2003, 02:43 AM
Hey everyone, the other day I saw a URL that looked like this:
http://www.whatever.com/thingy/app.exe?var=foobarIts calling the app the way you would an ASP page for PHP page. Anyone know how this is done?

Brian
01-02-2003, 04:15 AM
just a guess...put the app in the cgi-bin with the right permissions?

works on unix.

Sang-drax
01-02-2003, 09:32 AM
It is possible to execute .exe files with web servers that support it, e.g. IIS.

Here's an example from my homepage, it's an online compiler (http://www.strandmark.com/omicroncompiler.shtml) written in C++.

The information sent to cout will be displayed in the webbrowser, and the information posted to the .exe with a form is read with cin.

Fordy
01-02-2003, 10:30 AM
Also the URL could be an alias....no guarantee that it goes directly to an exe....

Waldo2k2
01-02-2003, 10:37 PM
as far as i know you can send information to any form of binary code as a CGI. I've seen people do it with dll's even. If you can compile it you can use it as a CGI.