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
https://forums.phpfreaks.com/topic/34826-serving-files-without-readfile/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • 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.