title: mkdir() function: No such file or directory
body: <p>I have the code:</p>
  
  <pre><code>$path_directory = $_SERVER['DOCUMENT_ROOT']."/facebook/user/".$userid."/coverphoto/";
  if(!file_exists($path_directory) &amp;&amp; !is_dir($path_directory)){
      mkdir($path_directory, true);
  </code></pre>
  
  <p>and it is telling me Warning: mkdir(): No such file or directory</p>
  
  <p>and I do not know what to do.</p>
  
  <p>Help is very much appreciated</p>