Answers for "how to give permission for php function to create directry dinamicly"

PHP
4

php mkdir

// Create a directory with the permission level (optional)
<?php
mkdir("/path/to/my/dir", 0700);
?>
Posted by: Guest on April-14-2020
2

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);
Posted by: Guest on June-30-2020

Code answers related to "how to give permission for php function to create directry dinamicly"

Browse Popular Code Answers by Language