Solved

How do i test my first CGI program

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

Master Your Team's Linux and Cloud Stack

Come see why top tech companies like Mailchimp and Media Temple use Linux Academy to build their employee training programs.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
Powershell / new-object PSObject rows 2 362
change home folder path 4 55
inactive users 13 80
Need a good Angular tutorial 5 81
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…
I hope you'll find this tutorial useful and interesting. So let's try to extend Tcl with a new package.  For anyone more deeply interested please check out the book "Practical Programming in Tcl and Tk". It's really one of the best written books abo…
Learn the basics of while and for loops in Python.  while loops are used for testing while, or until, a condition is met: The structure of a while loop is as follows:     while <condition>:         do something         repeate: The break statement m…
Learn how to match and substitute tagged data using PHP regular expressions. Demonstrated on Windows 7, but also applies to other operating systems. Demonstrated technique applies to PHP (all versions) and Firefox, but very similar techniques will w…

803 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