mirror of
https://github.com/sigmasternchen/php-doc-en
synced 2025-03-16 00:48:54 +00:00
coding standards
git-svn-id: https://svn.php.net/repository/phpdoc/en/trunk@297502 c90b9560-bf6c-de11-be94-00142212c4b1
This commit is contained in:
parent
f4dd676975
commit
ea7746ad91
1 changed files with 5 additions and 7 deletions
|
@ -138,19 +138,17 @@ mkdir("/path/to/my/dir", 0700);
|
|||
<programlisting role="php">
|
||||
<![CDATA[
|
||||
<?php
|
||||
/* Desired folder structure */
|
||||
// Desired folder structure
|
||||
$structure = './depth1/depth2/depth3/';
|
||||
|
||||
/* To create the nested structure, the $recursive parameter
|
||||
* to mkdir() must be specified.
|
||||
*/
|
||||
// To create the nested structure, the $recursive parameter
|
||||
// to mkdir() must be specified.
|
||||
|
||||
if(!mkdir($structure, 0, true))
|
||||
{
|
||||
if (!mkdir($structure, 0, true)) {
|
||||
die('Failed to create folders...');
|
||||
}
|
||||
|
||||
/* ... */
|
||||
// ...
|
||||
?>
|
||||
]]>
|
||||
</programlisting>
|
||||
|
|
Loading…
Reference in a new issue