php-doc-en/reference/dir/functions/chroot.xml
Friedhelm Betz 4c29c63de7 not available on windows
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@90408 c90b9560-bf6c-de11-be94-00142212c4b1
2002-07-30 16:14:34 +00:00

51 lines
1.5 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.3 $ -->
<!-- splitted from ./en/functions/dir.xml, last change in rev 1.11 -->
<refentry id="function.chroot">
<refnamediv>
<refname>chroot</refname>
<refpurpose>change the root directory</refpurpose>
</refnamediv>
<refsect1>
<title>Description</title>
<methodsynopsis>
<type>bool</type><methodname>chroot</methodname>
<methodparam><type>string</type><parameter>directory</parameter></methodparam>
</methodsynopsis>
<para>
Changes the root directory of the current process to
<parameter>directory</parameter>. Returns &false; if unable to
change the root directory, &true; otherwise.
</para>
<note>
<para>
It's not wise to use this function when running in a webserver
environment, because it's not possible to reset the root
directory to / again at the end of the request. This function
will only function correct when running as CGI this way.
</para>
</note>
&note.no-windows;
</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
-->