Create a Folder if it does not exists in PHP
This is a short snippet on how to create a folder via php when it does not exits.
This is a short snippet on how to create a folder via php when it does not exits.
if (!file_exists('path/to/directory')) {
mkdir('path/to/directory', 0777, true);
}