Re: CGI displays contents of script
- From: Gunnar Hjalmarsson <noreply@xxxxxxxxx>
- Date: Tue, 31 Jul 2007 21:19:52 +0200
jackson_samson@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";
Maybe the script must be in the cgi-bin to be executed by the web server, while you run it from somewhere else?
--
Gunnar Hjalmarsson
Email: http://www.gunnar.cc/cgi-bin/contact.pl
.
- References:
- CGI displays contents of script
- From: jackson_samson
- CGI displays contents of script
- Prev by Date: Re: NULL value question
- Next by Date: Re: NULL value question
- Previous by thread: Re: CGI displays contents of script
- Next by thread: NULL value question
- Index(es):
Relevant Pages
|