PHP\'s mkdir function only returns true and false. Problem is when it returns false.
If I\'m running with error reporting enabled, I see the error message on the scr
You can suppress the warning and make use of error_get_last():
if (!@mkdir($dir)) { $error = error_get_last(); echo $error['message']; }