Beefy Boxes and Bandwidth Generously Provided by pair Networks
"be consistent"
 
PerlMonks  

Re^2: include statement in perl? (DOCUMENT_ROOT trustworthy)

by Aristotle (Chancellor)
on May 31, 2003 at 03:15 UTC ( [id://262020]=note: print w/replies, xml ) Need Help??


in reply to Re: include statement in perl?
in thread include statement in perl?

It should be noted that as DOCUMENT_ROOT is set by the webserver and not subject to user input, it's safe to trust.

Makeshifts last the longest.

  • Comment on Re^2: include statement in perl? (DOCUMENT_ROOT trustworthy)

Replies are listed 'Best First'.
Re: Re^2: include statement in perl?
by Beatnik (Parson) on May 31, 2003 at 13:35 UTC
    'safe to trust' ne 'untainted' :)

    Greetz
    Beatnik
    ... I'm belgian but I don't play one on TV.
      Of course; I just mean you don't need to set it yourself. It'll suffice to simply do something like
      my ($doc_root) = $ENV{DOCUMENT_ROOT} =~ /(.*)/;

      Makeshifts last the longest.

Log In?
Username:
Password:

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

How do I use this?Last hourOther CB clients
Other Users?
Others drinking their drinks and smoking their pipes about the Monastery: (2)
As of 2024-04-19 20:47 GMT
Sections?
Information?
Find Nodes?
Leftovers?
    Voting Booth?

    No recent polls found