mirror of
https://github.com/macintoshplus/doc-fr.git
synced 2026-03-24 08:52:09 +01:00
123 lines
3.2 KiB
XML
123 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 0c9c2dd669fe9395eaa73d487fbd160f9057429a Maintainer: jpauli Status: ready -->
|
|
<!-- Reviewed: yes -->
|
|
|
|
<refentry xml:id="function.set-include-path" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>set_include_path</refname>
|
|
<refpurpose>Modifie la valeur de la directive de configuration include_path</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type class="union"><type>string</type><type>false</type></type><methodname>set_include_path</methodname>
|
|
<methodparam><type>string</type><parameter>include_path</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Modifie la valeur de la directive de configuration
|
|
<link linkend="ini.include-path">include_path</link>,
|
|
pour la durée du script en cours.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>include_path</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
La nouvelle valeur pour la directive de configuration
|
|
<link linkend="ini.include-path">include_path</link>
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Retourne l'ancienne valeur de
|
|
<link linkend="ini.include-path">include_path</link> en cas de succès&return.falseforfailure;.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title>Exemple avec <function>set_include_path</function></title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
set_include_path('/usr/lib/pear');
|
|
|
|
// Ou utiliser ini_set()
|
|
ini_set('include_path', '/usr/lib/pear');
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Ajout dans le chemin d'inclusion</title>
|
|
<para>
|
|
En utilisant la constante <constant>PATH_SEPARATOR</constant>, il est
|
|
possible d'étendre le chemin d'inclusion au vu du système.
|
|
</para>
|
|
<para>
|
|
Dans cet exemple, nous ajoutons <filename>/usr/lib/pear</filename>
|
|
à la fin de l'actuel <literal>include_path</literal>.
|
|
</para>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
$path = '/usr/lib/pear';
|
|
set_include_path(get_include_path() . PATH_SEPARATOR . $path);
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="seealso">
|
|
&reftitle.seealso;
|
|
<para>
|
|
<simplelist>
|
|
<member><function>ini_set</function></member>
|
|
<member><function>get_include_path</function></member>
|
|
<member><function>restore_include_path</function></member>
|
|
<member><function>include</function></member>
|
|
</simplelist>
|
|
</para>
|
|
</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:"~/.phpdoc/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
|
|
-->
|