Re: CGI displays contents of script
- From: jackson_samson@xxxxxxxxxxx
- Date: Tue, 31 Jul 2007 11:51:34 -0700
On Jul 31, 2:43 pm, Paul Lalli <mri...@xxxxxxxxx> wrote:
On Jul 31, 2:38 pm, jackson_sam...@xxxxxxxxxxx wrote:
I have installed perl 5.8.8 which already has the CGI included in it.
I created a small test script that uses the CGI.pm. When I run the
following in my browser, it shows me the entire script and does not
execute the script. Does anyone know why this happens?
Here is my output from the web browser:
#!/usr/bin/perl use CGI; print "Content-type: text/plain\n\n"; print
"TEST";
Because your web server is configured to display .cgi scripts rather
than execute them. This has nothing to do with Perl and everything to
do with web server configuration. You will get better assistance from
a group that talks about web server configurations.
Paul Lalli
That makes sense. Thanks for your answer.
.
- Follow-Ups:
- Re: CGI displays contents of script
- From: J. Gleixner
- Re: CGI displays contents of script
- References:
- CGI displays contents of script
- From: jackson_samson
- Re: CGI displays contents of script
- From: Paul Lalli
- CGI displays contents of script
- Prev by Date: Re: How do you continue in a for loop?
- Next by Date: Re: CGI displays contents of script
- Previous by thread: Re: CGI displays contents of script
- Next by thread: Re: CGI displays contents of script
- Index(es):
Relevant Pages
|