I have some C code that, when compiled under Linux, works perfectly as a CGI. This same source compiles perfectly with Visual C++ producing an exe.
My question is how do I use this as a CGI in a Windows, Apache environment.
Can I just place the exe in the correct folder, under Apache usually cgi-bin, or do I need to do more to get it to act as a CGI?

Recommended Answers

All 3 Replies

Yes I guess , also you might need to change name of the executable in html file.

If I had placed the exe into the correct folder, cgi-bin, in the 1st place I would not have needed to bother you guys as it would have worked as expected.

Once I moved it to cgi-bin folder, where it should have been in the 1st place, it worked perfectly as an exe.

Be a part of the DaniWeb community

We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.