Solved

How do i test my first CGI program

Posted on 1999-01-28
5
159 Views
Last Modified: 2013-12-25
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
0
Comment
Question by:issamwd
  • 3
  • 2
5 Comments
 
LVL 10

Accepted Solution

by:
MasseyM earned 100 total points
ID: 1832448
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
 
LVL 1

Author Comment

by:issamwd
ID: 1832449
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
 
LVL 10

Expert Comment

by:MasseyM
ID: 1832450
YOu can create a virtual directory call cgi-bin.  Set all the rights for that directory.  (Execute, Script, Read).  
0
 
LVL 1

Author Comment

by:issamwd
ID: 1832451
Masseym
Please can you tell me how do I do that
since I'm a bigginer in CGI & HTML

0
 
LVL 10

Expert Comment

by:MasseyM
ID: 1832452
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

Featured Post

MIM Survival Guide for Service Desk Managers

Major incidents can send mastered service desk processes into disorder. Systems and tools produce the data needed to resolve these incidents, but your challenge is getting that information to the right people fast. Check out the Survival Guide and begin bringing order to chaos.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

In this tutorial I will focus on how to use WhizBase as a tool for sending ICQ messages to ICQ. Here I will use a new technology in WhizBase, published in WhizBase 5.1 version. In this tutorial I will use 3 files, pager.wbsp for the processing, e…
If you get a (Blue Screen of Death), your system writes a small file called a minidump. Your first step is to make certain your computer is setup to record memory dumps. Right click My Computer, choose properties. Click on the advanced tab, an…
Learn the basics of modules and packages in Python. Every Python file is a module, ending in the suffix: .py: Modules are a collection of functions and variables.: Packages are a collection of modules.: Module functions and variables are accessed us…
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

726 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question