title: file_get_contents(): failed to open stream: Permission denied
body: <p>I'm trying to load <code>image</code> from <code>url</code>.
   Everything works fine in <code>localhost</code>.</p>
  
  <p>When I run the code on my webserver it is saying</p>
  
  <p><code>Warning: file_get_contents(url): failed to open stream: Permission denied in /home/www/ .../imageup.php on line 64</code> </p>
  
  <p>I've searched on <code>google</code> and tried with many answers from <code>stackoverflow</code>.
  Everyone is saying to set <code>proper permission</code> to the file and folder.</p>
  
  <p>I've set the <code>permission</code> for the <code>php file</code> and the folder to <code>777</code>.</p>
  
  <p>Some answers saying to run some commands but I can't find the console to run that code so I allowed permission manually.</p>
  
  <p>I can understand that there is something with permission but can't figure out.
  <em>(Someone may say this is an duplicate and may be it is, but I am fail to find solution)</em></p>
  
  <pre><code>$file = file_get_contents($image['src']);
  </code></pre>