in reply to Re^2: Error Module not working in Browser, Help!
in thread Error Module not working in Browser, Help!

That's exactly what is going on, it can't print to and create the log file(s). If I hard code the path it will defeat the propose of the code cause I need the module to generate log specific for each script running. But why do you think that it does its job from one place but the browser?
  • Comment on Re^3: Error Module not working in Browser, Help!

Replies are listed 'Best First'.
Re^4: Error Module not working in Browser, Help!
by Errto (Vicar) on Jan 09, 2006 at 20:15 UTC

    I don't quite see what you're getting at, but it sounds like you're assuming that cwd() will return the directory that the CGI script is located in. This is not the case. The value of cwd() is dependent on your web server configuration, and you cannot depend on it when calling a script through CGI.

    If each script should have its own log file, then provide a method in your module that takes an argument specifying the location of the log file, and each script can then specify its own.