note 33999 added to function.mysql-connect

From: Date: Sun, 13 Jul 2003 11:49:36 +0000
Subject: note 33999 added to function.mysql-connect
Groups: php.notes 
Request: Send a blank email to php-notes+get-52019@lists.php.net to get a copy of this message
Just a small follow up, but a small error in someones post, regarding security of .inc files. the ~ ".inc" is actually a regular expression, this expresion would match anything with inc in it, ex: wince.php, prince.html, etc. The correct expression would be: <Files ~ "\.inc(.php)?$"> Order allow,deny Deny from all Satisfy All </Files> This makes it so, all your .inc or .inc.php files are not readable. QUOTE: So, just add the following chunk of text to your httpd.conf file: <Files ~ ".inc"> Order allow,deny Deny from all Satisfy All </Files> -- Andy Calderbank ---- Manual Page -- http://www.php.net/manual/en/function.mysql-connect.php Edit Note -- http://master.php.net/manage/user-notes.php?action=edit+33999 Delete Note -- http://master.php.net/manage/user-notes.php?action=delete+33999&report=yes Reject Note -- http://master.php.net/manage/user-notes.php?action=reject+33999&report=yes

« previous php.notes (#52019) next »