Quote:
|
Originally Posted by DavH27
How do you 'reference' a php including function to a file that is not in the web root?
|
Say your webroot is
/home/foo/htdocs .. Just put your stuff somewhere under /home/foo/ and it's out of the webroot. In some cases that's not possible, but it should be.
Then include:
PHP Code:
require_once '/home/foo/db/inc/config.php';
-r