Beefy Boxes and Bandwidth Generously Provided by pair Networks
Welcome to the Monastery
 
PerlMonks  

Re: activestate opens files from commandline but not when executed as a cgi

by dree (Monsignor)
on Jun 10, 2002 at 19:20 UTC ( [id://173272]=note: print w/replies, xml ) Need Help??


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

Log In?
Username:
Password:

What's my password?
Create A New User
Domain Nodelet?
Node Status?
node history
Node Type: note [id://173272]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this?Last hourOther CB clients
Other Users?
Others making s'mores by the fire in the courtyard of the Monastery: (5)
As of 2024-04-20 01:05 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found