Know how to download the file path from the browser (the file is the source file). This post was last edited by u013293559 at 12:11:05 on February 10 ,.
Browser
Know how the file path can be downloaded from the browser (the file is the source file ......................
Reply to discussion (solution)
If there is no anti-Leech protection, the header Location is OK.
Can you send specific code? sorry !! No anti-theft
This is also an example?
The example in the manual can be written
Header ('Location: $ URL'); // how to obtain the url
Such as php .. It should not be downloaded ..
The download is also html
Php files cannot be downloaded. only front-end files such as html, js, and css can be downloaded.
I really don't want to understand. I mean there is a file or a compressed package on the server to get the path. I want to download this file and use php code to write it.
......
It looks like it is used as a client
File_get_contents ($ url) and fwrite to a local file.
The complexity is curl.
Header ('content-Disposition: attachment; filename = test. php ');
Readfile ('A. php'); // target file
Thank you for solving this problem.