mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Undocumented use of ENV vars in .ini
Patch by submitted by Mike Griffiths mgriffiths@gmail.com git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@329147 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
00daa136b3
commit
52007c8545
1 changed files with 21 additions and 0 deletions
|
@ -1300,6 +1300,27 @@ include_path=".;c:\php\includes"
|
|||
'./file'</literal> than having PHP always check the current
|
||||
directory for every include.
|
||||
</para>
|
||||
<note>
|
||||
<para>
|
||||
<literal>ENV</literal> variables are also accessible in .ini files.
|
||||
As such it is possible to reference the home directory using
|
||||
<literal>${LOGIN}</literal> and <literal>${USER}</literal>.
|
||||
</para>
|
||||
<para>
|
||||
Environment variables may vary between Server APIs as those environments
|
||||
may be different.
|
||||
</para>
|
||||
</note>
|
||||
<para>
|
||||
<example>
|
||||
<title>Unix include_path using ${USER} env variable</title>
|
||||
<programlisting role="php.ini">
|
||||
<![CDATA[
|
||||
include_path = ".:${USER}/pear/php"
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue