Question: mkdir is not working in php?
Answer: You're missing quotes around the path name parameter. Do all of the parent directories exist? If not, you'll need to enable recursion (assuming PHP5 here): mkdir('/path/to/your/dir',0777,true);