“PHP Mkdir рекурсив” Ответ

PHP Mkdir рекурсив

<?php
// Create a directory recursively (make sure to sanitize if taken from input as always!)
mkdir("/path/to/my/dir", 0777, true);
Envious Earthworm

PHP Mkdir

// Create a directory with the permission level (optional)
<?php
mkdir("/path/to/my/dir", 0700);
?>
The Red-est of Firebreaks

Mkdir рекурсивный Php

<?php
// 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 directories...');
}
Shadow

Ответы похожие на “PHP Mkdir рекурсив”

Вопросы похожие на “PHP Mkdir рекурсив”

Больше похожих ответов на “PHP Mkdir рекурсив” по PHP

Смотреть популярные ответы по языку

Смотреть другие языки программирования