title: Php mkdir( ) exception handling
body: <p>mkdir() is working correctly this question is more about catching an error. Instead of printing this when the directory exists I would just like to have it write to a message to me in a custom log. How do I create this exception.</p>
  
  <p>Warning: mkdir() [function.mkdir]: File exists</p>