Web Programming in C++ | SoloLearn: Learn to code for FREE!

+1

Web Programming in C++

How do i make a .cgi extension executable on my system. I use DEV C++ 5.11 as my compiler

4/13/2021 11:56:53 PM

Madubuike David

3 Answers

New Answer

0

Madubuike David, you seem to misundersrand cgi programming. The script or executable program you wish to execute on the server does not require a .cgi extension. I suggest that you read https://www.oreilly.com/openbook/cgi/ for more information about cgi programming. Note that while cgi programming is simple to use on low bandwidth sites it is generally considered to be an outdated technology.

+2

Just compile your C++ program for your target environment, place it in your cgi-bin folder, and it should work. You don’t really need extensions in a Linux server, but you could rename your app to whatever. More important is that your program knows how to input/output correctly and that your hosting machine allows cgi. Many don’t.

0

That's cross domain exploitation, so you'll have to work with that with current stuff or set up something. Have you considered compiling to wasm?