note 33759 added to function.mysql-connect

From: Date: Mon, 07 Jul 2003 04:51:34 +0000
Subject: note 33759 added to function.mysql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-51603@lists.php.net to get a copy of this message
CORRECTION: As of Apache 2.0.46 - The following directive will not work properly and will hault Apache from starting. In the example below that was given: The wrong way: <Files ~ "^\.ht"> Order allow,deny Deny from all Satisfy All </Files> CHANGED TO--The right way: <Files ~ "^\.ht"> Order allow,deny Deny from all </Files> NOTE: removed " Satisfy All". "Okay... that little chunk of text is saying that you don't want files that begin with .ht to be readable through apache. We also don't want people to see any files that end with .inc. So, just add the following chunk of text to your httpd.conf file:" The wrong way: <Files ~ ".inc"> Order allow,deny Deny from all Satisfy All </Files> CHANGED TO the right way: <Files ~ "^\.ht!*.inc"> Order allow,deny Deny from all </Files> Note: Now you can if you want to is to put this into a .htaccess file on a per directory basis. The ! [SHIFT] + number 1 key, seperates for another inclusion. The *. means anyfile name before the " . " Now any file with the "extention ".inc" will not be read by public. vynum ---- Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33759 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33759&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33759&report=yes

« previous php.notes (#51603) next »