PHP: mkdir - Manual - PHP: Hypertext Preprocessor
Please note that in a shared environment I failed to take into account an existing umask when I did a mkdir(dirname, 0755). This ended up creating the directory (function returned true), but I didn't have rights to do anything inside the folder, nor could...