title: PHP mkdir() Invalid Path
body: <p>I'm trying to save files on my server, and as a prerequisite, create directories that don't exist.</p>
  
  <p>I am running a script, <code>dl.php</code>, at <code>/home/public_html/www3/scripts/dl.php</code>:</p>
  
  <pre><code>$request['savedir'] = '/home/public_html/www3/scripts/images/logs';
  if( !is_dir($request['savedir']) )
      mkdir($request['savedir']);
  </code></pre>
  
  <p>And I get:</p>
  
  <pre><code>Warning: mkdir(): Invalid path in /home/public_html/www3/scripts/dl.php
  </code></pre>
  
  <p>The "images" does exist.</p>