oklilei
V2EX  ›  问与答

PHP 下载远程文件,浏览器保存成自定义的文件名,大概思路是什么?

  •  
  •   oklilei · Mar 6, 2020 · 2129 views
    This topic created in 2447 days ago, the information mentioned may be changed or developed.

    请教!

    1 replies  •  2020-03-06 20:30:32 +08:00
    ThirdFlame
    ThirdFlame
    Mar 6, 2020
    1
    file_get_contents
    Content-Type:application/octet-stream
    Content-Disposition:attachment;filename=xxx.zip
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Privacy   ·   Solana   ·   4357 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 25ms · UTC 08:52 · PVG 16:52 · LAX 00:52 · JFK 03:52
    ♥ Do have faith in what you're doing.