mirror of
https://github.com/php/doc-de.git
synced 2026-03-24 07:12:15 +01:00
106 lines
2.5 KiB
XML
106 lines
2.5 KiB
XML
<?xml version="1.0" encoding="utf-8"?>
|
|
<!-- $Revision$ -->
|
|
<!-- EN-Revision: 625dc345dba34bd0e8f97b6fac4272a5e8359428 Maintainer: sammywg Status: ready -->
|
|
<!-- Rev-Revision: 1.0 Reviewer: samesch -->
|
|
<!-- Credits: reinders -->
|
|
<refentry xml:id="function.chroot" xmlns="http://docbook.org/ns/docbook">
|
|
<refnamediv>
|
|
<refname>chroot</refname>
|
|
<refpurpose>Wechselt das Wurzelverzeichnis</refpurpose>
|
|
</refnamediv>
|
|
|
|
<refsect1 role="description">
|
|
&reftitle.description;
|
|
<methodsynopsis>
|
|
<type>bool</type><methodname>chroot</methodname>
|
|
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
|
|
</methodsynopsis>
|
|
<para>
|
|
Wechselt das Wurzelverzeichnis des aktuellen Prozesses zu
|
|
<parameter>directory</parameter>, und wechselt das aktuelle
|
|
Arbeitsverzeichnis zu "/".
|
|
</para>
|
|
<para>
|
|
Diese Funktion ist nur unter GNU- und BSD-Systemen verfügbar und nur bei
|
|
Verwendung der CLI-, CGI- oder Embed-SAPI. Zusätzlich benötigt die Funktion
|
|
Root-Rechte.
|
|
</para>
|
|
<para>
|
|
Der Aufruf dieser Funktion ändert nicht die Werte der magischen Kontanten
|
|
<literal>__DIR__</literal> und <literal>__FILE__</literal>.
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="parameters">
|
|
&reftitle.parameters;
|
|
<para>
|
|
<variablelist>
|
|
<varlistentry>
|
|
<term><parameter>directory</parameter></term>
|
|
<listitem>
|
|
<para>
|
|
Der Pfad, zu dem das Wurzelverzeichnis geändert werden soll.
|
|
</para>
|
|
</listitem>
|
|
</varlistentry>
|
|
</variablelist>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="returnvalues">
|
|
&reftitle.returnvalues;
|
|
<para>
|
|
&return.success;
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="examples">
|
|
&reftitle.examples;
|
|
<para>
|
|
<example><title><function>chroot</function>-Beispiel</title>
|
|
<programlisting role="php">
|
|
<![CDATA[
|
|
<?php
|
|
chroot("/pfad/zu/ihrem/chroot/");
|
|
echo getcwd();
|
|
?>
|
|
]]>
|
|
</programlisting>
|
|
&example.outputs;
|
|
<screen>
|
|
<![CDATA[
|
|
/
|
|
]]>
|
|
</screen>
|
|
</example>
|
|
</para>
|
|
</refsect1>
|
|
|
|
<refsect1 role="notes">
|
|
&reftitle.notes;
|
|
¬e.no-windows;
|
|
¬e.no-zts;
|
|
</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
|
|
-->
|