title: getting a files contents with CURL PHP?
body: <p>The content will not load from the file, here is my curl code,</p>
  
  <pre><code>curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  // GET CONTENTS OF HASHES.TXT
  curl_setopt($curl, CURLOPT_URL, 'http://xxx.com/api/x.txt');
  // SUCCESSFULY OPENED HASHES.TXT
  $file = curl_exec($curl);
  echo $file; // RETURNS NOTHING
  echo curl_error($curl); // COULDN'T CONNECT TO HOST
  echo curl_getinfo($curl, CURLINFO_HTTP_CODE); // 0
  </code></pre>
  
  <p>The curl is working as I have previously opened other webpages further up the script,</p>
  
  <p>Thanks</p>