Beefy Boxes and Bandwidth Generously Provided by pair Networks
No such thing as a small change

(tye)Re: Strange File Not Found Error

by tye (Sage)
on Jun 15, 2001 at 01:54 UTC ( #88645=note: print w/replies, xml ) Need Help??

in reply to Re: Re: Re: Strange File Not Found Error
in thread Strange File Not Found Error

Better method:

$|= 1; print join( ":", (stat("/"))[0,1] ), $/;
and compare these values between when run from the command line vs. when run as a web script. If they are different, then "/" is different in the two environment because one (probably the web server) is chrooted as a security measure.

If this is the problem, then you'll have to copy the file to someplace under the web server's virtual root.

BTW, `ls -ali /` is probably more what the original suggestion should have been.

        - tye (but my friends call me "Tye")

Replies are listed 'Best First'.
Re: (tye)Re: Strange File Not Found Error
by FouRPlaY (Monk) on Jun 15, 2001 at 03:10 UTC
    You hit the nail on the head. Seems like that's exactly what's happened. Thanks.

    Learning Perl or Going To die() Trying

Log In?

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

How do I use this? | Other CB clients
Other Users?
Others examining the Monastery: (1)
As of 2023-01-28 02:50 GMT
Find Nodes?
    Voting Booth?

    No recent polls found