note 102266 added to function.parse-ini-file
| From: | Alex-webitoria dot com at osu1 dot php dot net | Date: | Fri, 04 Feb 2011 23:56:24 +0000 |
| Subject: | note 102266 added to function.parse-ini-file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-176693@lists.php.net to get a copy of this message | ||
Constants in ini files are not expanded if they are concatenated with strings quoted with single
quotes, they must be in double quotes only to make constants expanded.
Example:
define ('APP_PATH', '/some/path');
mypath = APP_PATH '/config'
// Constant won't be expanded: [mypath] => APP_PATH '/config'
mypath = APP_PATH "/config"
// Constant will be expanded: [mypath] => /some/path/config
Note "." between constant and following string is not used.
Since Zend_Config_Ini is built on parse_ini_file, it inherits this behaviour.
----
Server IP: 69.147.83.197
Probable Submitter: 217.146.246.11
----
Manual Page -- http://www.php.net/manual/en/function.parse-ini-file.php
Edit -- https://master.php.net/note/edit/102266
Del: integrated -- https://master.php.net/note/delete/102266/integrated
Del: useless -- https://master.php.net/note/delete/102266/useless
Del: bad code -- https://master.php.net/note/delete/102266/bad+code
Del: spam -- https://master.php.net/note/delete/102266/spam
Del: non-english -- https://master.php.net/note/delete/102266/non-english
Del: in docs -- https://master.php.net/note/delete/102266/in+docs
Del: other reasons-- https://master.php.net/note/delete/102266
Reject -- https://master.php.net/note/reject/102266
Search -- https://master.php.net/manage/user-notes.php