Since I found a lot of buggy or incomplete PHP implementations, I wrote my own implementation which should work in most situations. Works with PHP >= 7.1 and allows to download files > 2 GB, even on a 32 bits OS or PHP version!
- copy
download.php
in a folder served by your Apache - optionally modify the value of
\Downloader\Download::LOCAL_CHARSET
to match the charset used by your PHP installation - store a big file that will be accessible for download, in this example it will be
C:\temp\kubuntu-22.04-desktop-amd64.iso
- open your favorite browser and type:
localhost/path_to_your_php_folder/download.php?path=C:/temp/kubuntu-22.04-desktop-amd64.iso