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
I have been using some function but it break in middle while reading. So i wanted to have a fresh opinion.
Amount these function
- file_get_contents
- readfile
- curl
which is most effective in terms of
- consistency (should not break while reading file)
- speed
- resource uses
if there is more then two cron job, does it impact over all server performance.
Please share best practice code.
Thanks in advance