in reply to activestate opens files from commandline but not when executed as a cgi

Are you using relative paths to read the file?

IIS doesn't like relative paths... try absolute ones.
For example, try:
($relative_path=$ENV{SCRIPT_NAME}) =~ s|[^/]+$||; $absolute_path=$ENV{PATH_TRANSLATED}.$relative_path; $filename=$absolute_path.'file.txt';
  • Comment on Re: activestate opens files from commandline but not when executed as a cgi
  • Download Code