<?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
-->