php-doc-en/reference/dir/functions/chroot.xml
Damien Seguy a8d04acfad use of entity
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@113543 c90b9560-bf6c-de11-be94-00142212c4b1
2003-01-27 01:00:33 +00:00

50 lines
1.5 KiB
XML

<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.5 $ -->
<!-- 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>. &return.success;.
</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 you run PHP as command line too. (CLI)
</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
-->