I have successfully installed Apache 1.3.12 on Win 95.
Modified httpd.conf file to support CGI
ScriptAlias /cgi-bin/ "E:/Apache Group/Apache/cgi-bin/"
AddHandler cgi-script cgi
<Directory "E:/Apache Group/Apache/cgi-bin">
AllowOverride None
Options ExecCGI FollowSymLinks
</Directory>
Now the cgi script executes fine when i say something like:
No problem here. The script is executed and I see proper output.
But when I call the same script via a HTML file it does not work. My html file located in cgi-bin dir. looks like following:
<HTML>
<HEAD><TITLE> Trying </TITLE></HEAD>
<FORM ACTION = "myCGIscript.cgi" METHOD=GET>
<INPUT TYPE="submit" VALUE="Submit">
<INPUT TYPE="reset" VALUE=Reset">
</FORM>
</BODY>
</HTML>
When I click the "submit" button, the script is not executed. Instead I see the all the text of the script file.
I do not get any server error, just the whole script file is displayed on the browser.
Here is how my script looks
#!D:\Perl\bin\perl.exe
print "Content-type: text/html \n\n";
print "If you see this it works \n";
Does anybody has a clue.
Thanks in Advance
[sig][/sig]
Modified httpd.conf file to support CGI
ScriptAlias /cgi-bin/ "E:/Apache Group/Apache/cgi-bin/"
AddHandler cgi-script cgi
<Directory "E:/Apache Group/Apache/cgi-bin">
AllowOverride None
Options ExecCGI FollowSymLinks
</Directory>
Now the cgi script executes fine when i say something like:
No problem here. The script is executed and I see proper output.
But when I call the same script via a HTML file it does not work. My html file located in cgi-bin dir. looks like following:
<HTML>
<HEAD><TITLE> Trying </TITLE></HEAD>
<FORM ACTION = "myCGIscript.cgi" METHOD=GET>
<INPUT TYPE="submit" VALUE="Submit">
<INPUT TYPE="reset" VALUE=Reset">
</FORM>
</BODY>
</HTML>
When I click the "submit" button, the script is not executed. Instead I see the all the text of the script file.
I do not get any server error, just the whole script file is displayed on the browser.
Here is how my script looks
#!D:\Perl\bin\perl.exe
print "Content-type: text/html \n\n";
print "If you see this it works \n";
Does anybody has a clue.
Thanks in Advance
[sig][/sig]