Solved

How do i test my first CGI program

Posted on 1999-01-28
5
147 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

3 Use Cases for Connected Systems

Our Dev teams are like yours. They’re continually cranking out code for new features/bugs fixes, testing, deploying, testing some more, responding to production monitoring events and more. It’s complex. So, we thought you’d like to see what’s working for us.

Question has a verified solution.

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

Suggested Solutions

Introduction This tutorial will give you a fast look what you can do with WhizBase. I expect you already know how to work with HTML at least, and that you understand the basics of the internet and how the internet works. WhizBase is a server-s…
In this tutorial I will show you how to make a simple HTML bar chart with the usage of WhizBase, If you want more information about WhizBase please read my previous articles at http://www.experts-exchange.com/ARTH_5123186.html (http://www.experts-ex…
The viewer will learn how to dynamically set the form action using jQuery.
In this fifth video of the Xpdf series, we discuss and demonstrate the PDFdetach utility, which is able to list and, more importantly, extract attachments that are embedded in PDF files. It does this via a command line interface, making it suitable …

910 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

Need Help in Real-Time?

Connect with top rated Experts

21 Experts available now in Live!

Get 1:1 Help Now