php mkdir
// Create a directory with the permission level (optional)
<?php
mkdir("/path/to/my/dir", 0700);
?>
php mkdir
// Create a directory with the permission level (optional)
<?php
mkdir("/path/to/my/dir", 0700);
?>
php mkdir recursive
<?php
// Create a directory recursively (make sure to sanitize if taken from input as always!)
mkdir("/path/to/my/dir", 0777, true);
mkdir recursive 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...');
}
Copyright © 2021 Codeinu
Forgot your account's password or having trouble logging into your Account? Don't worry, we'll help you to get back your account. Enter your email address and we'll send you a recovery link to reset your password. If you are experiencing problems resetting your password contact us