title: mkdir() says theres no such directory and fails?
body: <p>Im likely doing something very simply wrong, but when I try to make a directory (using a variable of an insert just performed as the last folder name), I get the error:</p>
  
  <blockquote>
    <p>Warning: mkdir() [function.mkdir]: No such file or directory in /home/blah/blah</p>
  </blockquote>
  
  <p>with the code:</p>
  
  <pre><code>if (!is_dir("images/listing-images/rent/'.$insertID.")) {
          //make new directory with unique id
     mkdir("images/listing-images/rent/'.$insertID."); 
  }
  </code></pre>
  
  <p>of course the directory doesn't exist.. I'm trying to make it now? confused!</p>