mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
include_path: Using php.ini-dist defaults in examples. Explain what . is a
little more. And a little cleanup. This also closes bug #19698 git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@104865 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
1ff1260a35
commit
5d6efbb879
1 changed files with 16 additions and 9 deletions
|
@ -1,5 +1,5 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.84 $ -->
|
||||
<!-- $Revision: 1.85 $ -->
|
||||
<chapter id="configuration">
|
||||
<title>Configuration</title>
|
||||
|
||||
|
@ -916,24 +916,31 @@ include_path = ".;c:\php\lib"
|
|||
files. The format is like the system's <envar>PATH</envar>
|
||||
environment variable: a list of directories separated with a
|
||||
colon in UNIX or semicolon in Windows.
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>UNIX include_path</title>
|
||||
<programlisting role="php3.ini">
|
||||
<programlisting role="php.ini">
|
||||
<![CDATA[
|
||||
include_path=.:/home/httpd/php-lib
|
||||
include_path=".:/php/includes"
|
||||
]]>
|
||||
</programlisting>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<para>
|
||||
<example>
|
||||
<title>Windows include_path</title>
|
||||
<programlisting role="php3.ini">
|
||||
<programlisting role="php.ini">
|
||||
<![CDATA[
|
||||
include_path=".;c:\www\phplib"
|
||||
include_path=".;c:\php\includes"
|
||||
]]>
|
||||
</programlisting>
|
||||
</programlisting>
|
||||
</example>
|
||||
The default value for this directive is <literal>.</literal>
|
||||
(only the current directory).</para>
|
||||
</para>
|
||||
<para>
|
||||
Using a <literal>.</literal> in the include path allows for
|
||||
relative includes as it means the current directory.
|
||||
</para>
|
||||
</listitem>
|
||||
</varlistentry>
|
||||
|
||||
|
|
Loading…
Reference in a new issue