note 69209 deleted from function.parse-ini-file by bjori
| From: | bjori@php.net | Date: | Sun, 27 Aug 2006 23:21:54 +0000 |
| Subject: | note 69209 deleted from function.parse-ini-file by bjori | ||
| References: | 1 | Groups: | php.notes |
| Request: | Send a blank email to php-notes+get-116397@lists.php.net to get a copy of this message | ||
Note Submitter: Typer85 at gmail dot com
Reason: integrated
----
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.