title: reading large file from remote server using php script
body: <p>I am trying to read large files lets say illustrator file or photoshop file using cron job in my system.
  Files size varies from 20 mb - 300 mb</p>
  
  <p>I have been using some function but it break in middle while reading. So i wanted to have a fresh opinion.</p>
  
  <p>Amount these function</p>
  
  <ul>
  <li>file_get_contents</li>
  <li>readfile</li>
  <li>curl</li>
  </ul>
  
  <p>which is most effective in terms of </p>
  
  <ul>
  <li>consistency (should not break while reading file)</li>
  <li>speed</li>
  <li>resource uses</li>
  </ul>
  
  <p>if there is more then two cron job, does it impact over all server performance.</p>
  
  <p>Please share best practice code.</p>
  
  <p>Thanks in advance</p>