How do i test my first CGI program

I'm new in CGI
I'm using Windows 98

I want to know how to test my first cgi
interface with C++
I wrote the code in c++
but I want to test it on the browser
how do I do that
LVL 1
issamwdAsked:
Who is Participating?

Improve company productivity with a Business Account.Sign Up

x
 
MasseyMConnect With a Mentor Commented:
Move your cgi.exe file to the cgi-bin directory on a windows server.  this use the following code in an HTML page.
What does it produce?

if it produces images, use can use this:
<IMG SRC="/cgi-bin/yourcgi.exe">

of, you can use this if it gives back text.
<FORM ACTION="/cgi-bin/yourcgi.exe" METHOD=POST>
<INPUT TYPE="SUBMIT">
</FORM>
0
 
issamwdAuthor Commented:
Thanks friend,

But I don't have the Cgi-Bin directory
since I'm using the front page 98 local server
do I need another server
or can I make it work using it

If I need another server please tell me

note that I use windows98 as an O.S.
0
 
MasseyMCommented:
YOu can create a virtual directory call cgi-bin.  Set all the rights for that directory.  (Execute, Script, Read).  
0
 
issamwdAuthor Commented:
Masseym
Please can you tell me how do I do that
since I'm a bigginer in CGI & HTML

0
 
MasseyMCommented:
2 ways:
1) Contact your ISP and have them create one for you.
2) Using a FTP browser, create the directory on your own.  Set its rights to "execute" (Usually in the FTP program there is a way to do this).

That will do it for you.
0
Question has a verified solution.

Are you are experiencing a similar issue? Get a personalized answer when you ask a related question.

Have a better answer? Share it in a comment.

All Courses

From novice to tech pro — start learning today.