mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-21 19:38:56 +00:00

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@132049 c90b9560-bf6c-de11-be94-00142212c4b1
66 lines
1.8 KiB
XML
66 lines
1.8 KiB
XML
<?xml version="1.0" encoding="iso-8859-1"?>
|
|
<!-- $Revision: 1.2 $ -->
|
|
<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><function>set_include_path</function> example</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
|
|
-->
|