mkdir/rmdir now support wrappers

git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@146384 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
Sara Golemon 2003-12-13 21:18:12 +00:00
parent 31b488456d
commit dc39a7da4b
2 changed files with 28 additions and 2 deletions

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.9 $ -->
<!-- $Revision: 1.10 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.39 -->
<refentry id="function.mkdir">
<refnamediv>
@ -12,6 +12,7 @@
<type>bool</type><methodname>mkdir</methodname>
<methodparam><type>string</type><parameter>pathname</parameter></methodparam>
<methodparam choice="opt"><type>int</type><parameter>mode</parameter></methodparam>
<methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam>
</methodsynopsis>
<para>
Attempts to create the directory specified by pathname.
@ -46,6 +47,18 @@ mkdir ("/path/to/my/dir", 0700);
<para>
&return.success;
</para>
<note>
<simpara>
As of <literal>PHP 5.0.0</literal> <function>mkdir</function> can also be
used with <emphasis>some</emphasis> url wrappers. Refer to <xref linkend="wrappers"/>
for a listing of which wrappers support <function>mkdir</function>.
</simpara>
</note>
<note>
<simpara>
The <parameter>context</parameter> parameter was added as of <literal>PHP 5.0.0</literal>.
</simpara>
</note>
<para>
See also <function>rmdir</function>.
</para>

View file

@ -1,5 +1,5 @@
<?xml version="1.0" encoding="iso-8859-1"?>
<!-- $Revision: 1.4 $ -->
<!-- $Revision: 1.5 $ -->
<!-- splitted from ./en/functions/filesystem.xml, last change in rev 1.2 -->
<refentry id="function.rmdir">
<refnamediv>
@ -11,12 +11,25 @@
<methodsynopsis>
<type>bool</type><methodname>rmdir</methodname>
<methodparam><type>string</type><parameter>dirname</parameter></methodparam>
<methodparam choice="opt"><type>resource</type><parameter>context</parameter></methodparam>
</methodsynopsis>
<para>
Attempts to remove the directory named by <parameter>dirname</parameter>.
The directory must be empty, and the relevant permissions must permit this.
&return.success;
</para>
<note>
<simpara>
As of <literal>PHP 5.0.0</literal> <function>rmdir</function> can also be
used with <emphasis>some</emphasis> url wrappers. Refer to <xref linkend="wrappers"/>
for a listing of which wrappers support <function>rmdir</function>.
</simpara>
</note>
<note>
<simpara>
The <parameter>context</parameter> parameter was added as of <literal>PHP 5.0.0</literal>.
</simpara>
</note>
<para>
See also <function>mkdir</function> and <function>unlink</function>.
</para>