How to make, that did not show an error?
try { if(!$userPath = mkdir('./userFile/'.$_SESSION['user'].'/question/' . $date . '/' , 0700, true)) { throw new Exception('ΠΡΠΈΠ±ΠΊΠ°.'); die(); } } catch (Exception $e) { echo '<p>ΠΡΠΎΠΈΠ·ΠΎΡΠ»Π° ΠΎΡΠΈΠ±ΠΊΠ°.</p>' . $e->getMessage(); die(); } Shows Warning: mkdir(): Not a directory