title: PHP create nested directories
body: <p>I need help with a function to create a 2 level directory for the following situations:</p>
  
  <ol>
  <li>The desired sub-directory exists in the parent directory, do nothing.</li>
  <li>Parent directory exists, sub-directory does not exist. Create only the sub-directory.</li>
  <li>Neither parent directory, nor the sub-directory exists, First create parent directory, then sub-directory.</li>
  <li>If Any of the directory was not created successfully, return FALSE.</li>
  </ol>
  
  <p>Thanks for the help.</p>