Re: CGI displays contents of script



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
.



Relevant Pages