mirror of
https://github.com/php/doc-de.git
synced 2026-03-25 15:52:10 +01:00
124 lines
3.2 KiB
XML
124 lines
3.2 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 0c9c2dd669fe9395eaa73d487fbd160f9057429a Maintainer: nobody Status: ready -->
|
|
<!-- Reviewed: no -->
|
|
<refentry xml:id="function.set-include-path" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>set_include_path</refname>
|
|
<refpurpose>Setzt die Konfigurationsoption 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>
|
|
Setzt die Konfigurationsoption
|
|
<link linkend="ini.include-path">include_path</link> für die Dauer der
|
|
Ausführung des Skripts.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>include_path</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Der neue Wert für den
|
|
<link linkend="ini.include-path">include_path</link>.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
Gibt bei Erfolg den alten
|
|
<link linkend="ini.include-path">include_path</link> zurück.
|
|
&return.falseforfailure;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example>
|
|
<title><function>set_include_path</function>-Beispiel</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
set_include_path('/usr/lib/pear');
|
|
|
|
// Oder mit ini_set()
|
|
ini_set('include_path', '/usr/lib/pear');
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
</example>
|
|
</para>
|
|
<para>
|
|
<example>
|
|
<title>Den include-path erweitern</title>
|
|
<para>
|
|
Wenn man die Konstante <constant>PATH_SEPARATOR</constant> verwendet, ist
|
|
es möglich, den <literal>include_path</literal> ohne Kenntnis des
|
|
verwendeten Betriebssystems zu erweitern.
|
|
</para>
|
|
<para>
|
|
In diesem Beispiel fügen wir <filename>/usr/lib/pear</filename> ans Ende
|
|
des vorhandenen <literal>include_path</literal> an.
|
|
</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
|
|
-->
|