note 69209 added to function.parse-ini-file

From: Date: Sun, 27 Aug 2006 09:24:44 +0000
Subject: note 69209 added to function.parse-ini-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-116382@lists.php.net to get a copy of this message
In regards to "php at isaacschlueter dot com". Your method in adding the following code to prevent access to ini files is incorrect: ---------------------------------------------------------------- <?php die( 'Restricted Access' ) ?> [Database] userName = root ---------------------------------------------------------------- As of PHP 5, this will return an error is parsing the ini file. I have not tested this with PHP < 5 though. ---- Server IP: 66.163.161.117 Probable Submitter: 62.193.102.124 ---- X-Spam-Status: No, hits=3.1 required=5.0 tests=DATE_MISSING,FROM_NO_LOWER autolearn=no version=2.64 ---- Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php Edit -- https://master.php.net/note/edit/69209 Del: integrated -- https://master.php.net/note/delete/69209/integrated Del: useless -- https://master.php.net/note/delete/69209/useless Del: bad code -- https://master.php.net/note/delete/69209/bad+code Del: spam -- https://master.php.net/note/delete/69209/spam Del: non-english -- https://master.php.net/note/delete/69209/non-english Del: in docs -- https://master.php.net/note/delete/69209/in+docs Del: other reasons-- https://master.php.net/note/delete/69209 Reject -- https://master.php.net/note/reject/69209 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116382) next »