<?php
if (!file_exists('home/public_html/example.com/wp-content/uploads/blog')) {
mkdir('home/public_html/example.com/wp-content/uploads/blog', 0777, true);
}
?>
According To Question:
#mkdir php
#check if directory exists php
#how to create directory dynamically in php
#create directory in php file upload
#create folder inside folder in php
#php mkdir not working
#php mkdir 777
#php mkdir()