note 119838 added to configuration.file
| From: | ohcc at 163 dot com | Date: | Sat, 03 Sep 2016 17:06:25 +0000 |
| Subject: | note 119838 added to configuration.file | ||
| Groups: | php.notes | ||
| Request: | Send a blank email to php-notes+get-206488@lists.php.net to get a copy of this message | ||
in php.ini you can reference to an existing directive or an environment variable using the syntax
${varname}.
Here are some examples.
sys_temp_dir = "${WINDIR}"
--- ${WINDIR} will be replaced by $_ENV['WINDIR'] at runtime
--- you can set environment variables by Apache and use them in php.ini
--- FcgidInitialEnv AUTHOR "WUXIANCHENG"
--- error_log = "${AUTHOR}.log"
error_log = "${sys_temp_dir}"
--- ${sys_temp_dir} will be replace by the value of sys_temp_dir
Also you can use PHP constants in php.ini, but DONT'T wrap them in ${} or "".
error_log = "/data/"PHP_VERSION"/"
--- it works like this php code:
$error_log = "/data/" . PHP_VERSION . "/";
----
Server IP: 72.52.91.14
Probable Submitter: 118.117.62.85
----
Manual Page -- http://php.net/manual/en/configuration.file.php
Edit -- https://master.php.net/note/edit/119838
Del: integrated -- https://master.php.net/note/delete/119838/integrated
Del: useless -- https://master.php.net/note/delete/119838/useless
Del: bad code -- https://master.php.net/note/delete/119838/bad+code
Del: spam -- https://master.php.net/note/delete/119838/spam
Del: non-english -- https://master.php.net/note/delete/119838/non-english
Del: in docs -- https://master.php.net/note/delete/119838/in+docs
Del: other reasons-- https://master.php.net/note/delete/119838
Reject -- https://master.php.net/note/reject/119838
Search -- https://master.php.net/manage/user-notes.php