View Full Version : how do I test my CGI scripts on my computer?

09-26-2001, 12:47 PM
I have windows ME. and i was wondering how I could test out my CGI scripts on my computer(offline)

rick barclay
09-26-2001, 03:01 PM
You need a copy of Active Perl. After you install it, open a dos
window and switch to the directory where your scripts are
stored. The command line is: perl myprogram.cgi.

The script will execute in the dos box. To simulate your
scripts using a web page, I think you have to set up a
server and map the perl path on your computer to the
server. I believe you can use either Windows IIS or Apache
for Windows, which I hear is very good. I don't run any server
software on my own computer right now so I haven't been able
to test anything. The Apache server is freeware I believe.
Good luck with it.

rick barclay

09-26-2001, 04:10 PM
why does it seem like every body thinks CGI is perl????
go that outa my system,

I am using C for my CGI needs, although i could just hop over to the bookstore for a perl book, is perl worth learning? some say perl is cryptic others say it's great for text procecing(a good advantage when working w/ HTML).

so is there a C verion of this?

and whats the other stuff your talking about?:
"set up a
server and map the perl path on your computer to the
I am really a HTML/JavaScript person with a little C/C++ under my belt.

how do I set up a server map?

09-26-2001, 04:11 PM
sorry, I forgot to say thanks.

Thanks Rick.

09-26-2001, 05:57 PM
To answer your question about Perl... it's a nifty language, very good for processing text, as your friend told you. It's also easy to learn, especially for someone who knows another language. Just look at a few of the tutorials on perl.com. The problem with the language is that some of the commands can get so condensed and weird-looking that unless you know what you are doing, it can be rather boggling.

One of the perl turorials mentioned the so-called 'perl paradoxes'. One of the paradoxes was this: perl code is easy to write, but hard to read.