title: File_get_contents to Curl
body: <p>I would like to know what's the easiest to way to transform my code below to use cURL.</p>
  
  <p>I'm asking this because I have performed every test in localhost and it was working fine until I pushed it to my server and I have read that I should use cURL but it looks so complicated for what I need to do.</p>
  
  <pre><code>$userid = file_get_contents("http://www.someexample.com/api/findusers/".$names."?key=".$key, NULL, NULL, 8);
  </code></pre>