Re: Putting Include files outside of document root

From: Date: Sun, 19 Aug 2001 02:39:46 +0000
Subject: Re: Putting Include files outside of document root
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-63325@lists.php.net to get a copy of this message
> If my document root is something like /home/myname/dir/ (as per phpinfo()), > and I put my include files in /home/myname/includes/, is that actually > outside of the document root, or is anything under /home/myname/ actually > the document root? Yes, that's outside. If phpinfo() says: /home/myname/dir/ then these are bad: /home/myname/dir/foo.inc /home/myname/dir/includes/foo.inc /home/myname/dir/as/deep/as/you/want/foo.inc and these are okay: /home/myname/includes/foo.inc /home/myname/includes/as/deep/as/you/want/foo.inc /any/other/random/directory/foo.inc Of course, you now have the challenge of configuring 'include_path' in php.ini to have all the paths you need :-) -- WARNING richard@zend.com address is an endangered species -- Use ceo@l-i-e.com Wanna help me out? Like Music? Buy a CD: http://l-i-e.com/artists.htm Volunteer a little time: http://chatmusic.com/volunteer.htm

« previous php.general (#63325) next »