Re: Problems with include directory which falls under .htaccess protection

From: Date: Mon, 25 Jun 2001 06:16:23 +0000
Subject: Re: Problems with include directory which falls under .htaccess protection
References: 1  Groups: php.general 
Request: Send a blank email to php-general+get-55099@lists.php.net to get a copy of this message
> I have a .htaccess file with the following in it > order allow,deny > allow from all > require user pilot > Authname MySite > Authtype Basic > > The page itselfs prompts for and accepts username/password correctly, > however on that page are a number of included files.. The included files are > in a subdirectory of the root of the site and hence fall under the > jursidiction of the .htaccess. PHP cannot however access these.. I guess > because it also needs to be authenticated... > > Oh, I checked the PHP code etc... and everything works fine... Almost for sure you don't have the include_path set properly for PHP to *find* the files, and Apache (which handles the Auth stuff) is not involved in any way, shape, or form. Your include_path is set in php.ini, plus any dynamic changes made in httpd.conf and/or .htaccess files using: php_value include_path "./:/path/to/your/home/dir/here:/any/more/paths/you/like/here" -- 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 (#55099) next »