title: How to create folder in parent directory?
body: <p>My php script is located in <strong><code>/var/www/html/users/dev</code></strong>. I need to create a folder in <strong><code>/var/www/images/</code></strong> - something like <code>/var/www/images/test/test/</code> and store here some images.</p>
  
  <p>But when i trying is with <code>mkdir($file_dir, 0777);</code> where <code>$file_dir</code> is <strong><code>/var/www/images/test/test/</code></strong> i receive an error:</p>
  
  <blockquote>
    <p>Warning: mkdir(): No such file or directory in /var/www/html/users/dev/classes/sites.class.php...</p>
  </blockquote>