[NTLUG:Discuss] perl cgi script question
Jack Snodgrass
jack+ntlug at mylinuxguy.net
Sat Mar 8 18:59:24 CST 2003
On Sat, 2003-03-08 at 13:02, Geremy L. Hamlett wrote:
> One guestion,
>
> I have a couple of cgi scripts coded in perl sitting on a website. I
> copied them back to my computer, that has no webserver running, and tried to
> run the scripts. I opened a browser and open the html file that points
> to the script. When I hit submit it just displays the perl script in
> on the browser. It dosn't execute the script. Is this due to the
> fact that I do not have a webserver running on my home comp? or
> something more complicated?
>
> Thanks,
> gnuzealot
You can only run a cgi script from the web server.
You also have to configure the web server to execute
the script. If you try and run a script that is not
set up to be executed, you'll see the contents of
the file and not actually run it.
jack
More information about the Discuss
mailing list