note 69210 added to function.parse-ini-file

From: Date: Sun, 27 Aug 2006 09:49:03 +0000
Subject: note 69210 added to function.parse-ini-file
Groups: php.notes 
Request: Send a blank email to php-notes+get-116381@lists.php.net to get a copy of this message
In response to my last note; In doing further testing, I found that when adding this code in avoid external viewing of an ini file works but under a certain condition. The PHP code can not expand on multiple lines like so: ----------------------------------------------------------- ;<?php die( "No Access" ); ?> [DB] user = root --------------------------------------------------------------- Rather, it has to be on one line, and the first line that it, in the ini file, like so: ---------------------------------------------------------------- ; <?php die( "No Access" ); ?> [DB] user = root Sorry for the mis-understanding, ---- 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/69210 Del: integrated -- https://master.php.net/note/delete/69210/integrated Del: useless -- https://master.php.net/note/delete/69210/useless Del: bad code -- https://master.php.net/note/delete/69210/bad+code Del: spam -- https://master.php.net/note/delete/69210/spam Del: non-english -- https://master.php.net/note/delete/69210/non-english Del: in docs -- https://master.php.net/note/delete/69210/in+docs Del: other reasons-- https://master.php.net/note/delete/69210 Reject -- https://master.php.net/note/reject/69210 Search -- https://master.php.net/manage/user-notes.php

« previous php.notes (#116381) next »