in reply to (crazyinsomniac) RE: Perl to CGI
in thread Perl to CGI

I put in the code you gave above and it taught me one thing. When I manually run the program from the command line, it gives me a log of the errors, but the errors it gives are irrelevant ones that don't effect the rest of the program(e.g. $webmaster is not referenced later in program).
But, when I try to access it through the form, it doesn't even activate the program, but it knows it's there. That brings me back to thinking it's permissions. But I've already tried various permissions, including the one listed in repsonse to my original post and the result is the same.
I don't get it.

She-wolf
"Wha? I don't get it."

Replies are listed 'Best First'.
RE: RE: RE: Perl to CGI
by bastard (Hermit) on Aug 18, 2000 at 21:52 UTC
    Anytime text (via std or err output) is returned from a cgi it goes back to the browser.
    If any text precedes(it usually does) the header ("Content-type: text/html\n\n" in the case of an html page) then the browser will think something is wrong. (It will think it is receiving a bad header.)

    On the possibility of permissions problems. I have a few hosted sites that prevents any cgi from executing if the directory the script is in has potentially insecure permissions. (group/other read/write needed to be turned off, this might apply to the script too)
    It may help, it's caught me several times.