![]() Topic awaiting preservation: Includes outside of web root (Page 1 of 1) |
|
---|---|
Maniac (V) Inmate From: there...no..there..... |
![]() 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 |
![]() |
Maniac (V) Inmate From: there...no..there..... |
![]() just wondering is all. |
Maniac (V) Mad Scientist From: 100101010011 <-- right about here |
![]() 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..... |
![]() ok, so doing it that way is cool but say: require("$myInfo"); is not. |