title: PHP - Create directory on different server
body: <p>I have Wamp (server called emerald) running and Mamp running on my Mac. People register on Mamp. Emerald is basically file hosting.</p>
  
  <p>Emerald connects to Mamp's mysql database, to login users. However, I want to create a directories for new registrations on Emerald using PHP.</p>
  
  <p>How can I do this? I have tried using this code:</p>
  
  <pre><code>$thisdir = "192.168.1.71";
  $name = "Ryan-Hart";
  
  if(mkdir($thisdir ."/documents/$name" , 0777)) 
  { 
     echo "Directory has been created successfully..."; 
  }
  </code></pre>
  
  <p>But had no luck. It basically needs to connect the other server and create a directory, in the name of the user. </p>
  
  <p>I hope this is clear.</p>