Nolongerused3921 Posted January 19, 2007 Share Posted January 19, 2007 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. Quote Link to comment Share on other sites More sharing options...
Hypnos Posted January 19, 2007 Share Posted January 19, 2007 Try this function that I found in the comments on the readfile function:http://us3.php.net/manual/en/function.readfile.php#54295It's suppose to fix that exact issue. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.