curl get remote file and force download at same time

前端 未结 3 2085
刺人心
刺人心 2020-12-13 22:53

I\'m trying to get a remote file and force download it to user at the same time. I can\'t paste the code ,the code is too long . but the curl function works ,but the problem

3条回答
  •  旧巷少年郎
    2020-12-13 23:32

    how to get big (8GB) remote file and force download at same time, while not killing you server:

    the readfile() function will read the stream in chunks, and print it to the output, so it will not use much memory...

提交回复
热议问题