note 99036 added to function.parse-ini-file
| From: | geggert at web dot de | Date: | Fri, 23 Jul 2010 13:44:43 +0000 |
| Subject: | note 99036 added to function.parse-ini-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-171071@lists.php.net to get a copy of this message | ||
As quick an dirty way to gain the security of that *.ini.php-files you may alternatively use this as
first line:
; <?php exit(); __halt_compiler();
// the closing tag is just to end up the syntax highlighting ...
// leave these comments and the closing tag away in your ini.php-file!
?>
You can use parse_ini_file() in the normal way and any criminal stranger will only see a
";" then ...
----
Server IP: 212.124.37.9
Probable Submitter: 194.94.3.90
----
Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php
Edit -- https://master.php.net/note/edit/99036
Del: integrated -- https://master.php.net/note/delete/99036/integrated
Del: useless -- https://master.php.net/note/delete/99036/useless
Del: bad code -- https://master.php.net/note/delete/99036/bad+code
Del: spam -- https://master.php.net/note/delete/99036/spam
Del: non-english -- https://master.php.net/note/delete/99036/non-english
Del: in docs -- https://master.php.net/note/delete/99036/in+docs
Del: other reasons-- https://master.php.net/note/delete/99036
Reject -- https://master.php.net/note/reject/99036
Search -- https://master.php.net/manage/user-notes.php