View Single Post
Old 11-28-2004, 02:51 PM   #6 (permalink)
idx
Senior Grasshopper
 
idx's Avatar
 
Join Date: Jun 2003
Location: FL
Posts: 317
idx is on a distinguished road
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
idx is offline   Reply With Quote