note 31082 added to function.parse-ini-file

From: Date: Wed, 09 Apr 2003 07:29:25 +0000
Subject: note 31082 added to function.parse-ini-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-46395@lists.php.net to get a copy of this message
Using ini files can be a security threat, if the visitor knows the filename, because ini files will just be readable like any other file, it is not parsed by the server. So, you should place any ini files outside your web root, where no deamons have access to. (For apache, outside the DocumentRoot) For example, Place your files in /var/www/ and your ini files in /var/settings/ or something. To read your ini files, just $IniFile=parse_ini_file ("/var/settings/my_site.ini"); Make sure it's properly CHMOD'ed! -- http://www.php.net/manual/en/function.parse-ini-file.php http://master.php.net/manage/user-notes.php?action=edit+31082 http://master.php.net/manage/user-notes.php?action=delete+31082 http://master.php.net/manage/user-notes.php?action=reject+31082

« previous php.notes (#46395) next »