php mkdir recursive
snippet in php

php mkdir

user5649

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

php mkdir recursive

user5493

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