I am trying to read large files, cron jobs in my system, called Illustrator file or Photoshop file. The file size varies from 20 MB - 300 MB
I am using some functions, but breaks it in the middle while reading.
If there is more than two cron jobs, then it affects all server performance.
Please share the best practice code.
Thanks advance
Use the curl to open the file functions remote files Excluded in favor of cURL. This not only, but more reliable 1 (you are less likely to experience timeouts).
If your script runs out of time or out of memory, then you
-
readfile ()
reads a file and it is on output Prints buffer;file_get_contents ()
. - If you compile the curl with the
- Ker-Curl access
, you shouldfile_get_contents) while doing this
thisfopen () < / Code> will use the CRL instead of functions.
1 citation needed.
Comments
Post a Comment