Beefy Boxes and Bandwidth Generously Provided by pair Networks
There's more than one way to do things
 
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 ( #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
Node Status?
node history
Node Type: note [id://173272]
help
Chatterbox?
and the web crawler heard nothing...

How do I use this? | Other CB clients
Other Users?
Others taking refuge in the Monastery: (13)
As of 2014-12-22 23:03 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    Is guessing a good strategy for surviving in the IT business?





    Results (133 votes), past polls