Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 3222834
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 17, 20262026-05-17T16:02:13+00:00 2026-05-17T16:02:13+00:00

I am trying to read large files lets say illustrator file or photoshop file

  • 0

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

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-17T16:02:14+00:00Added an answer on May 17, 2026 at 4:02 pm

    Use cURL. The file functions have been deprecated in favor of cURL to open remote files. It’s not only faster, but also more reliable1 (you are less likely to experience timeouts).

    If your script times out or runs out of memory anyways, you’ll want to increase the execution time and memory limits (max_execution_time and memory_limit).

    Other notes:

    • readfile() reads a file and prints it to the output buffer; it’s no the same thing as file_get_contents().
    • If you compile curl with --with-curlwrappers then when you do file_get_contents() it will use cURL instead of the fopen() functions.

    1 Citation needed.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am trying to read large excel files xlsx via Apache POI, say 40-50
I am trying to read from a file and encrypt the data using AES
I am trying to find especially large files on a file share with deeply
I have some trouble trying to split large files (say, around 10GB). The basic
I am trying to read in a large text file (~2.5 MB) into my
I'm trying to read some large text files (between 50M-200M), doing simple text replacement
I am trying to read a very large file in AS3 and am having
i've been trying to read a large file in haskell. I need to compress
Basic c++ question here. I'm trying to read a large file on Windows 7
Flex front-end using AMF to Java back. Trying to read, in real-time, a file

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.