note 15388 added to function.include

From: Date: Fri, 07 Sep 2001 17:29:02 +0000
Subject: note 15388 added to function.include
Groups: php.notes 
Request: Send a blank email to php-notes+get-17780@lists.php.net to get a copy of this message
My favorite way to avoid remote users from peeking at your include files, is to place them in a directory named .ht(something). This matches the regexp present in the apache configuration. You can name files this way to, but it's best to leave a README in the .htblah/ directory to illistrate your reasoning for a directory named as such. (namley for picky admins) Apache will match the regexp and issue an error document stating that the resource is off limits. Enjoy =-) http://www.php.net/manual/en/function.include.php

« previous php.notes (#17780) next »