title: PHP File_get_contents error in connection
body: <p>I have a php file and all it contains is</p>
  
  <pre><code>&lt;?php
  ini_set('display_errors', 1);
  ini_set('display_startup_errors', 1);
  error_reporting(E_ALL);
  
  echo file_get_contents("http://mywebsite.com/javascript-function.php");
  ?&gt;
  </code></pre>
  
  <p>And for some reason it displays the following notice:</p>
  
  <pre><code>Notice: file_get_contents(): send of 24 bytes failed with errno=104 Connection reset by peer in /home/sites/mywebsite.com/public_html/index.php on line 6 Notice: file_get_contents(): send of 2 bytes failed with errno=32 Broken pipe in /home/sites/mywebsite.com/public_html/index.php on line 6
  </code></pre>
  
  <p>I have never come accross this message before so I have no idea what to do to solve it.</p>
  
  <p>I have also tried using cURL but it outputs nothing and no error message.</p>