title: Warning: mkdir() [function.mkdir]: No such file or directory PHP?
body: <p>I am getting this error when trying to use <code>mkdir()</code> function in PHP.</p>
  
  <p>basically I am creating a sundomain on my server based on an <code>input field</code> in the HTML form named (<code>inPut</code>).</p>
  
  <p>now I am trying to create a directory in that subdomain after it has been created.</p>
  
  <p>so I use the following code :</p>
  
  <pre><code>$subDomain= $_POST['inPut'];
  
  mkdir("$subDomain.mydoamin.com/newDirectory", 0755);
  </code></pre>
  
  <p>but I get the following error:</p>
  
  <pre><code>Warning: mkdir() [function.mkdir]: No such file or directory in line 99.
  </code></pre>
  
  <p>and on line 99 is this:</p>
  
  <pre><code>mkdir("$subDomain.mydoamin.com/newDirectory", 0755);
  </code></pre>
  
  <p>as a note: the subdomain gets created successfully. so I know the subdomain 100% does exist on my server. I just don't know why I get that error!</p>
  
  <p>could someone please advise on this issue?</p>
  
  <p>Thanks in advance.</p>