On one of my site, I have a large-file download method using:
site.com/downloader.php?file=MyLargeFile.mp3
then PHP file executes readfile
to start file downloading.
Typically, not to go in details of load-balancing, I just wanted to know how PHP engine works - does such approach in PHP (throwing files usingreadfile
, file_get_contents
or etc...) take more CPU/Overload, compared to downloading with direct links, like site.com/MyLargeFile.mp3
? Or PHP engine does same using those commands?