CGI Help. Can't execute

wizzz

Senior member
Jul 20, 2000
267
0
0
I have a little CGI program I want to test on my local host.

So I put the cgi file in my "cgi-bin" directory and I use a simple HTML form to call the cgi script.

Now when I open the HTML page, it has a "submit" button and when the button is pressed, it will call the cgi script.

However, when I click on the button, the cgi script does not execute.
Instead it will show the cgi file in text format.

What am I doing wrong?


p.s. I'm in windows environment, and as far as I can tell I checked all the box to allow read/write/execute.
 

notfred

Lifer
Feb 12, 2001
38,241
4
0
p.s. I'm in windows environment, and as far as I can tell I checked all the box to allow read/write/execute.

That doesn't make any sense, windows doesn't have file permissions like that.
 

wizzz

Senior member
Jul 20, 2000
267
0
0
Well... I was trying to say that when I right clikc on a file on windows -> properties
and go to the security tab, there are check marks for read, write, execute, and some other stuff.

I was trying to say that all those check boxes have been checked.
 

wizzz

Senior member
Jul 20, 2000
267
0
0
DOH!!!

I just read your post and I realized that I didn't change the perl path from
#!/usr/bin/perl -w

to #!C:\perl\bin\perl -w


Thanks!