title: Create Directory Using PHP, Uploading Files on another domain account
body: <p>I need to upload files on an already existing folder from a php script on my account : www.example.com , on www.exampleuploads.com/uploads , but not able to do it ? Please help.</p>
  
  <p>Also, my script detects that the folder does not exists (  but it actually does exists) , so it goes to mkdir , but mkdir also fails.</p>
  
  <p>I am doing this : </p>
  
  <pre><code>if (directory for uploading does not exists)
  {
      mkdir( 'http://www.exampleuploads.com/uploads', 0755)
  }
  </code></pre>