Beefy Boxes and Bandwidth Generously Provided by pair Networks
Your skill will accomplish
what the force of many cannot
 
PerlMonks  

Re: How to make relative URL if "cgi-bin" is above the web root?

by lostjimmy (Chaplain)
on Jan 20, 2010 at 14:49 UTC ( [id://818472]=note: print w/replies, xml ) Need Help??


in reply to How to make relative URL if "cgi-bin" is above the web root?

big_chat.pl is running on the server and doesn't care about relative paths with respect to the webserver. You are dealing with the server's filesystem at this point, so editing those other files is a matter of knowing what folders they are in. You could simply reference them as absolute paths.
$textdir = "/data/text"; $docfile = "/htdocs/cowboys/$FORM{'3'}";

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others avoiding work at the Monastery: (6)
As of 2026-02-17 09:39 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found

    Notices?
    hippoepoptai's answer Re: how do I set a cookie and redirect was blessed by hippo!
    erzuuliAnonymous Monks are no longer allowed to use Super Search, due to an excessive use of this resource by robots.