J
Joe Burnett
Hello,
I am trying to run a trivial perl script, but the results either get
displayed in a dos window,
or the source code gets displayed in a browser. The former happens when I
open the script
in IE with a pl extension. The latter happens if I open the script with a
cgi extension. Both
scripts reside in "C:\Program Files\Apache Group\Apache2\cgi-bin".
Obviously, I have an
apache server (the service is started, as well as two apache.exe processes).
I have ActiveState
perl installed. Here is the script:
#!C:\Perl\bin\perl.exe
print "Content-type: text/html\n\n";
print "<html>\n<head><title>First CGI</title></head>\n";
print "<body><h1>\n";
print "Hello world!!";
print "</h1>\n </body>\n</html>\n";
I have been looking in the news groups for two days to no avail.
Thanks,
Joe
I am trying to run a trivial perl script, but the results either get
displayed in a dos window,
or the source code gets displayed in a browser. The former happens when I
open the script
in IE with a pl extension. The latter happens if I open the script with a
cgi extension. Both
scripts reside in "C:\Program Files\Apache Group\Apache2\cgi-bin".
Obviously, I have an
apache server (the service is started, as well as two apache.exe processes).
I have ActiveState
perl installed. Here is the script:
#!C:\Perl\bin\perl.exe
print "Content-type: text/html\n\n";
print "<html>\n<head><title>First CGI</title></head>\n";
print "<body><h1>\n";
print "Hello world!!";
print "</h1>\n </body>\n</html>\n";
I have been looking in the news groups for two days to no avail.
Thanks,
Joe