Re: [DB_DataObject]How to set permission for DataObject.ini

From: Date: Wed, 16 Nov 2005 06:06:16 +0000
Subject: Re: [DB_DataObject]How to set permission for DataObject.ini
References: 1  Groups: php.pear.general 
Request: Send a blank email to pear-general+get-21939@lists.php.net to get a copy of this message
* digit Shine <digit_shine@yahoo.com.cn> [2005-11-16 03:58:55]: > DataObject.ini include DB password, How to prevent visited by public? > Thanks! > Assuming you're using Apache, put something like this in your .htaccess-file or apache-config: <Files ~ "DataObject.ini"> Order allow,deny Deny from all </Files> This will make Apache deny everyone access to the file DataObject.ini. If you put it in your .htaccess-file, the AllowOverride directive has to contain at least Limit. /Andreas -- andreas blaafladt <andreas@blaafladt.no>

« previous php.pear.general (#21939) next »