PHP: mkdir - Manual - PHP: Hypertext Preprocessor
When using the recursive parameter bear in mind that if you're using chmod() after mkdir() to set the mode without it being modified by the value of uchar() you need to call chmod() on all created directories. ie:...