Posts Tagged "create folder"

Create a folder if it doesn’t already exist in php

Create a folder if it doesn’t already exist in php Defination and Usage: The mkdir() function creates a directory. This function returns TRUE on success, or FALSE on failure. mkdir(‘path/to/directory’, 0755, true); mkdir(path,mode,recursive,context) path – Required. Specifies the name of the directory to create mode – Optional. Specifies permissions. By default, the mode is 0777 (widest possible access). recursive – Optional. Specifies if the recursive mode is set (added in PHP 5) context – Optional. Specifies the context of the…

Like to share it
Read More