C++ CGI Help Needed
Posted on 1998-02-07
I want to make a CGI Script that searches a file for keywords, and then returns an HTML page stating what it found...A search engine. For example, if I wanted to search for "Luke Skywalker" (This is going to be a search engine of Star Wars characters and places), it would return an HTML page stating that is found something about Luke Skywalker, and then has a link to the page that tells about him.
Now, Here are my questions:
1. What kind of file would I use as the database? Can C++ read and write off of TXT or H files? I mean, if put a class into an "H" file, (Like stdio.h, only it would be one of my own.) could it read it so that it would send a link to be put on the HTML page when it matched a certain string?
2. Do I need to compile the source code once I have written it? Do I just compile it to an EXE file, and then change the extension to CGI?
3. What do I have to do to make sure that this code will run as a CGI script, and not as a normal C++ program?
5. Are there any special library files I need to use with a C++ CGI script? Where would I get those?
4. Are there any free compilers that I can get that would run ok with Windows 95? I am trying to understand DJGPP right now, but it isn't working because it is made for DOS. I also have Turbo C++ LITE, but that won't compile into and EXE file that I can use outside of the IDE.
Thank you anyone for taking time to read this, and if you can answer any of these, I would greatly appreciate it.