Jump to content

Serving files without readfile()


Nolongerused3921

Recommended Posts

I just stress tested my download.php script, and I found that with files over 3mb, apache eats up quite a bit of memory and goes to ~90% CPU for a short bit while it loads the file... There has [b]got[/b] to be an alternative to this, as I may be serving files [b]up to and possibly above[/b] 120mb to literally thousands of people a day... My server simply can not handle this, and I honestly don't think many can.

So my question is this... How can I serve a file, securely and secretly - while maintaining complete control over who gets to access the file, without having to load it into memory.
Link to comment
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.