Topic awaiting preservation: Includes outside of web root (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: there...no..there..... |
posted 09-20-2005 20:51
is it OK to just include a page outside of the web root by doing: code: require ("/var/www/inc/my_sensitive_info.php")
|
Paranoid (IV) Mad Scientist From: Omicron Persei 8 |
posted 09-20-2005 22:27 |
Maniac (V) Inmate From: there...no..there..... |
posted 09-21-2005 00:22
just wondering is all. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
posted 09-21-2005 05:53
As long as you're using a hardcoded string this is as good as it gets. Once you start using variables is when things can get dicey. |
Maniac (V) Inmate From: there...no..there..... |
posted 09-21-2005 12:27
ok, so doing it that way is cool but say: require("$myInfo"); is not. |