Jump to content
  • Advertisement
Sign in to follow this  
DarkRonin

How do I execute code server side in IIS 6?

This topic is 3732 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi there, I have written a small counter application designed to increment the (numerical) contents of a file when executed. It is an .exe file written in c++. I am hosting a web page on the same server using IIS 6 on a Windows Server 2003 (standard edition) platform. How would I go about executing the file (server side) when the page is accessed from the internet? Do I use the 'Post' command somehow, within the HTML? I remember (vaugely) with Microsoft Front Page 98 there was the ability to do this. But, regretfully, I dont have a clue as to what the HTML code was that did it. Any help on this would be awesome!

Share this post


Link to post
Share on other sites
Advertisement
How do I run CGI programs on IIS 6?

You will probably want to do something like modify your program to update the server local file, then print the web page's HTML source to the HTTP response object. There is no way to have a WWW resource execute code except through extension technologies that presume that the execution of the code generates part or all of the resource.

Share this post


Link to post
Share on other sites
Thanks for the link (and a quote from it)
Quote:
If your CGI programs are compiled .exe files, written in C or C++ or any other language that produces .exe files, then you'll just need to configure IIS to allow executables to be run...

I have created a virtual directory on my site called 'CGI' and have set the permissions.



But still cant execute the app. Another tutorial said I should be able to go to "http://localhost/CGI/myapp.exe". But all I recieve is 'this page cant be displayed'.

I know the link is valid because I can view any html files within the same directory.

Share this post


Link to post
Share on other sites
Sign in to follow this  

  • Advertisement
×

Important Information

By using GameDev.net, you agree to our community Guidelines, Terms of Use, and Privacy Policy.

We are the game development community.

Whether you are an indie, hobbyist, AAA developer, or just trying to learn, GameDev.net is the place for you to learn, share, and connect with the games industry. Learn more About Us or sign up!

Sign me up!