mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Initial documentation.
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@127227 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
b96da16cc3
commit
48136ee22a
2 changed files with 141 additions and 0 deletions
75
reference/info/functions/restore-include-path.xml
Normal file
75
reference/info/functions/restore-include-path.xml
Normal file
|
@ -0,0 +1,75 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.restore-include-path">
|
||||
<refnamediv>
|
||||
<refname>restore_include_path</refname>
|
||||
<refpurpose>
|
||||
Restores the value of the include_path configuration option
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>void</type><methodname>restore_include_path</methodname>
|
||||
<void />
|
||||
</methodsynopsis>
|
||||
<simpara>
|
||||
Restores the <link linkend="ini.include-path">include_path</link>
|
||||
configuration option back to its original master value as set in
|
||||
&php.ini;
|
||||
</simpara>
|
||||
<para>
|
||||
<example>
|
||||
<title>Example use of <function>restore_include_path</function></title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
|
||||
print get_include_path(); // .:/usr/local/lib/php
|
||||
|
||||
set_include_path('/inc');
|
||||
|
||||
print get_include_path(); // /inc
|
||||
|
||||
// Works as of PHP 4.3.0
|
||||
restore_include_path();
|
||||
|
||||
// Works in all PHP versions
|
||||
ini_restore('include_path');
|
||||
|
||||
print get_include_path(); // .:/usr/local/lib/php
|
||||
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<simpara>
|
||||
See also <function>ini_restore</function>,
|
||||
<function>set_include_path</function>,
|
||||
<function>get_include_path</function>, and
|
||||
<function>include</function>.
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
sgml-omittag:t
|
||||
sgml-shorttag:t
|
||||
sgml-minimize-attributes:nil
|
||||
sgml-always-quote-attributes:t
|
||||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
indent-tabs-mode:nil
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"../../../../manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
66
reference/info/functions/set-include-path.xml
Normal file
66
reference/info/functions/set-include-path.xml
Normal file
|
@ -0,0 +1,66 @@
|
|||
<?xml version="1.0" encoding="iso-8859-1"?>
|
||||
<!-- $Revision: 1.1 $ -->
|
||||
<refentry id="function.set-include-path">
|
||||
<refnamediv>
|
||||
<refname>set_include_path</refname>
|
||||
<refpurpose>
|
||||
Sets the include_path configuration option
|
||||
</refpurpose>
|
||||
</refnamediv>
|
||||
<refsect1>
|
||||
<title>Description</title>
|
||||
<methodsynopsis>
|
||||
<type>string</type><methodname>set_include_path</methodname>
|
||||
<methodparam><type>string</type><parameter>new_include_path</parameter></methodparam>
|
||||
</methodsynopsis>
|
||||
<simpara>
|
||||
Sets the <link linkend="ini.include-path">include_path</link>
|
||||
configuration option for the duration of the script. Returns the old
|
||||
<link linkend="ini.include-path">include_path</link> on success or
|
||||
&false; on failure.
|
||||
</simpara>
|
||||
<para>
|
||||
<example>
|
||||
<title>Example use of <function>set_include_path</function></title>
|
||||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// Works as of PHP 4.3.0
|
||||
set_include_path('/inc');
|
||||
|
||||
// Works in all PHP versions
|
||||
ini_set('include_path', '/inc');
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
</example>
|
||||
</para>
|
||||
<simpara>
|
||||
See also <function>ini_set</function>,
|
||||
<function>get_include_path</function>,
|
||||
<function>restore_include_path</function>, and
|
||||
<function>include</function>.
|
||||
</simpara>
|
||||
</refsect1>
|
||||
</refentry>
|
||||
|
||||
<!-- Keep this comment at the end of the file
|
||||
Local variables:
|
||||
mode: sgml
|
||||
sgml-omittag:t
|
||||
sgml-shorttag:t
|
||||
sgml-minimize-attributes:nil
|
||||
sgml-always-quote-attributes:t
|
||||
sgml-indent-step:1
|
||||
sgml-indent-data:t
|
||||
indent-tabs-mode:nil
|
||||
sgml-parent-document:nil
|
||||
sgml-default-dtd-file:"../../../../manual.ced"
|
||||
sgml-exposed-tags:nil
|
||||
sgml-local-catalogs:nil
|
||||
sgml-local-ecat-files:nil
|
||||
End:
|
||||
vim600: syn=xml fen fdm=syntax fdl=2 si
|
||||
vim: et tw=78 syn=sgml
|
||||
vi: ts=1 sw=1
|
||||
-->
|
Loading…
Reference in a new issue