Re: [DB_DataObject]How to set permission for DataObject.ini
| From: | arnaud sellenet bodin | Date: | Wed, 16 Nov 2005 13:23:20 +0000 |
| Subject: | Re: [DB_DataObject]How to set permission for DataObject.ini | ||
| References: | 1 2 | Groups: | php.pear.general |
| Request: | Send a blank email to pear-general+get-21941@lists.php.net to get a copy of this message | ||
Another solution is to put it, if you can, outside the apache document root
Le 16 nov. 05, à 07:06, Andreas Blaafladt a écrit :
* digit Shine <digit_shine@yahoo.com.cn> [2005-11-16 03:58:55]:Arnaud Sellenet-Bodin Dév et dés http://demental.info Tel : 05 63 55 24 46 / | \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> -- PEAR General Mailing List (http://pear.php.net/) To unsubscribe, visit: http://www.php.net/unsub.php \ | /