I tried to make a code to download large files, I tried to download a file that its size is 1GB and it downloaded until 100MB & then failed, I need a code that downloads large files even if the user closed the tab.
ignore_user_abort(true);
file_put_contents('file.mp4', file_get_contents('http://domain/id.mp4'));