in reply to Command Line Output Different from Output to Browser

Wild guess: the path set in your web server is substantially different from the command-line path, and several required files aren't available.

I'd print the variables you're expecting after each require(), just to see what's there.

  • Comment on Re: Command Line Output Different from Output to Browser

Replies are listed 'Best First'.
(shockme) Re: Re: Command Line Output Different from Output to Browser
by shockme (Chaplain) on Mar 26, 2002 at 01:58 UTC
    I thought the same. The scripts are in ./ - but just to be sure, I tested with the full path name to the scripts (i.e., require("/www/htdocs/cgi-bin/......"). The result is the same.

    If I remove the require statements and cut-and-paste the contents of the require'd scripts into the main script, it works fine. There seems to be something peculiar about printing from the require'd script that's escaping me.

    If things get any worse, I'll have to ask you to stop helping me.

      It could be permission problem. When CGI is run it often runs with another UID. Check permissions of required files.

      --
      Ilya Martynov (http://martynov.org/)