Advertisement
If you have a new account but are having problems posting or verifying your account, please email us on hello@boards.ie for help. Thanks :)
Hello all! Please ensure that you are posting a new thread or question in the appropriate forum. The Feedback forum is overwhelmed with questions that are having to be moved elsewhere. If you need help to verify your account contact hello@boards.ie

Accessing CGI's in Hard Disk.

Options
  • 05-07-2001 4:15pm
    #1
    Closed Accounts Posts: 35


    T'is like this lads. I'm just geting into the whole CGI perl scene. Everything's fine with the learning and that, but picture this.

    Some of you guys think I'm a proper spa cos I can't do this but it doesn't help trying.....
    1. I create a HTML document (we'll call index.html) with a standard form in it.
    2. I create a standard CGI script (we'll call check.cgi) for the index.html, and I want it to verify certain info in index.html form and spit back a reply.
    3.I save both files ON MY HARD DISK in the same folder.
    4.All links are valid.

    Now my problem is is that when I try to execute the program in Explorer, it tries to open the cgi file as if were an independant file! (same as if you did a link to a jpg. How do I get Explorer to do it's job???!??!!! I suspect a configuration problem. Help me please!!!!
    Thanks in advance wink.gif

    Narf!!!

    [This message has been edited by The Pinky (edited 05-07-2001).]


Comments

  • Closed Accounts Posts: 1,651 ✭✭✭Enygma


    You need to be running a webserver on your computer to get any CGI programs running. You can get Apache for free from http://www.apache.org
    I've no idea how to get Perl to run a CGI script on a Win32 box but I'm sure it'll be in the docs somewhere.
    Good Luck


  • Banned (with Prison Access) Posts: 16,659 ✭✭✭✭dahamsta


    You'll also need Perl, do a search for "ActivePerl" on Google, that's the best Win32 Perl port.

    adam


  • Closed Accounts Posts: 53 ✭✭Zee Dude


    What type of web server are you running and on what OS are you running it?

    If its apache then you will need to configure the server to allow it execute CGI scripts in that directory.

    http://httpd.apache.org/docs/ tells you how to do it.


Advertisement