Solved

How do i test my first CGI program

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

What Should I Do With This Threat Intelligence?

Are you wondering if you actually need threat intelligence? The answer is yes. We explain the basics for creating useful threat intelligence.

Join & Write a Comment

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…
Active Directory replication delay is the cause to many problems.  Here is a super easy script to force Active Directory replication to all sites with by using an elevated PowerShell command prompt, and a tool to verify your changes.
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…
The viewer will learn how to create and use a small PHP class to apply a watermark to an image. This video shows the viewer the setup for the PHP watermark as well as important coding language. Continue to Part 2 to learn the core code used in creat…

757 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

18 Experts available now in Live!

Get 1:1 Help Now