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. Link to comment https://forums.phpfreaks.com/topic/34826-serving-files-without-readfile/ 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. Link to comment https://forums.phpfreaks.com/topic/34826-serving-files-without-readfile/#findComment-164179 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.