in reply to RE: Perl problems
in thread Perl problems

Someone suggested changing .pl to .cgi, so I did. I then ran the script through telnet and it ran like it was supposed to. However, when I tried to use my browsers it gives me an internal error message. I have never had a case where it would run through telnet and not the browser. Any thoughts??? Thanks Scott

Replies are listed 'Best First'.
RE: RE: RE: Perl problems
by btrott (Parson) on Mar 10, 2000 at 08:41 UTC
    There are a *lot* of reasons why it would run correctly from the command line, but not run from your browser. Did you look in your server's error log? You should have an error message in there.

    Are the permissions set correctly? They should be 0755 so that the web server can execute your script.

    Did you output a content header?

    print "Content-Type: text/html\n\n";
    Read the Idiot's Guide.