mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
Fix #81266: mkdir calls directories folders in example code
This commit is contained in:
parent
2b8d277712
commit
1128875883
1 changed files with 2 additions and 2 deletions
|
@ -111,14 +111,14 @@ mkdir("/path/to/my/dir", 0700);
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
// Desired folder structure
|
||||
// Desired directory structure
|
||||
$structure = './depth1/depth2/depth3/';
|
||||
|
||||
// To create the nested structure, the $recursive parameter
|
||||
// to mkdir() must be specified.
|
||||
|
||||
if (!mkdir($structure, 0777, true)) {
|
||||
die('Failed to create folders...');
|
||||
die('Failed to create directories...');
|
||||
}
|
||||
|
||||
// ...
|
||||
|
|
Loading…
Reference in a new issue