note 114823 added to function.parse-ini-file
| From: | mgcummings at yahoo dot SPAMNO dot com | Date: | Thu, 10 Apr 2014 02:48:38 +0000 |
| Subject: | note 114823 added to function.parse-ini-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-199238@lists.php.net to get a copy of this message | ||
Not mentioned in docs about constants but 'magic' constants do NOT work. So for example:
// __DIR__ = /my/web/site/app
log_file = __DIR__"/app.log"
Gives you just "__DIR__/app.log" with NO replacement.
Make sense it should NOT work as there would be question if it should be set to path of PHP file
making the call or the path of the 'ini' file. Though the last might be useful the first
generally would NOT be if you parse the file several different places in your code etc.
Tested in PHP 5.4.26
----
Server IP: 192.41.45.150
Probable Submitter: 67.5.125.57
----
Manual Page -- http://php.net/manual/en/function.parse-ini-file.php
Edit -- https://master.php.net/note/edit/114823
Del: integrated -- https://master.php.net/note/delete/114823/integrated
Del: useless -- https://master.php.net/note/delete/114823/useless
Del: bad code -- https://master.php.net/note/delete/114823/bad+code
Del: spam -- https://master.php.net/note/delete/114823/spam
Del: non-english -- https://master.php.net/note/delete/114823/non-english
Del: in docs -- https://master.php.net/note/delete/114823/in+docs
Del: other reasons-- https://master.php.net/note/delete/114823
Reject -- https://master.php.net/note/reject/114823
Search -- https://master.php.net/manage/user-notes.php