title: Setting permissions in PHP on server
body: <p>I am trying to create a really simple webpage in php, letting people upload images to a folder on my server. I made this really simple with some done code, and it worked awesomely on my computer with xampp, but when I upload the page to my server, it gets an error message every time I upload anything. The error is when the script checks if the image was uploaded, where it says</p>
  
  <pre><code>$copied = copy($_FILES['image']['tmp_name'], $newname);
  if(!$copied)
     echo "error";
  </code></pre>
  
  <p>This leads me to believe that there is something wrong with the permissions. But how can I set this? And what should I set it to? I just need others to be able to upload images to a spesific folder.</p>