svn: /phpdoc/en/trunk/reference/filesystem/functions/ mkdir.xml
| From: | Kalle Sommer Nielsen | Date: | Tue, 02 Mar 2010 01:50:22 +0000 |
| Subject: | svn: /phpdoc/en/trunk/reference/filesystem/functions/ mkdir.xml | ||
| Groups: | php.doc.cvs | ||
| Request: | Send a blank email to doc-cvs+get-6151@lists.php.net to get a copy of this message | ||
kalle Tue, 02 Mar 2010 01:50:22 +0000
Revision: http://svn.php.net/viewvc?view=revision&revision=295712
Log:
Fixed bug #51157 (The "recursive" parameter for mkdir is not documented.)
Bug: http://bugs.php.net/51157 (error getting bug
information)
Changed paths:
U phpdoc/en/trunk/reference/filesystem/functions/mkdir.xml
Modified: phpdoc/en/trunk/reference/filesystem/functions/mkdir.xml
===================================================================
--- phpdoc/en/trunk/reference/filesystem/functions/mkdir.xml 2010-03-02 01:37:42 UTC (rev 295711)
+++ phpdoc/en/trunk/reference/filesystem/functions/mkdir.xml 2010-03-02 01:50:22 UTC (rev 295712)
@@ -57,7 +57,8 @@
<term><parameter>recursive</parameter></term>
<listitem>
<para>
- Default to &false;.
+ Allows the creation of nested directories specified in the
+ <parameter>pathname</parameter>. Defaults to &false;.
</para>
</listitem>
</varlistentry>
@@ -131,6 +132,30 @@
</programlisting>
</example>
</para>
+ <para>
+ <example>
+ <title><function>mkdir</function> using the
<parameter>recursive</parameter> parameter</title>
+ <programlisting role="php">
+<![CDATA[
+<?php
+/* Desired folder structure */
+$structure = './depth1/depth2/depth3/';
+
+/* To create the nested structure, the $recursive parameter
+ * to mkdir() must be specified.
+ */
+
+if(!mkdir($structure, 0, true))
+{
+ die('Failed to create folders...');
+}
+
+/* ... */
+?>
+]]>
+ </programlisting>
+ </example>
+ </para>
</refsect1>
<refsect1 role="notes">