how do I test my CGI scripts on my computer?

This is a discussion on how do I test my CGI scripts on my computer? within the A Brief History of Cprogramming.com forums, part of the Community Boards category; I have windows ME. and i was wondering how I could test out my CGI scripts on my computer(offline)...

  1. #1
    Registered User compjinx's Avatar
    Join Date
    Aug 2001
    Posts
    214

    Post how do I test my CGI scripts on my computer?

    I have windows ME. and i was wondering how I could test out my CGI scripts on my computer(offline)

  2. #2
    Registered User rick barclay's Avatar
    Join Date
    Aug 2001
    Posts
    835
    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
    No. Wait. Don't hang up!

    This is America calling!

  3. #3
    Registered User compjinx's Avatar
    Join Date
    Aug 2001
    Posts
    214

    Question what?

    why does it seem like every body thinks CGI is perl????
    ITS NOT!!!!
    whew!
    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
    server"
    I am really a HTML/JavaScript person with a little C/C++ under my belt.

    how do I set up a server map?

  4. #4
    Registered User compjinx's Avatar
    Join Date
    Aug 2001
    Posts
    214

    oh, and thanks.

    sorry, I forgot to say thanks.

    Thanks Rick.
    "The most overlooked advantage of owning a computer is that if they foul up there's no law against whacking them around a bit."
    Eric Porterfield.

  5. #5
    Registered User
    Join Date
    Aug 2001
    Posts
    11

    re:perl

    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.

Popular pages Recent additions subscribe to a feed

Similar Threads

  1. Computer Programmer Aptitude Battery Test (CPAB)
    By scotty101 in forum General Discussions
    Replies: 40
    Last Post: 02-22-2010, 11:49 PM
  2. about cgi scripts
    By xixpsychoxix in forum Networking/Device Communication
    Replies: 11
    Last Post: 07-08-2008, 07:03 PM
  3. Integer Emulation
    By Elysia in forum C++ Programming
    Replies: 31
    Last Post: 03-18-2008, 02:03 PM
  4. CGI program help please
    By Lince in forum C Programming
    Replies: 3
    Last Post: 08-01-2007, 02:31 AM

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21