Find a station on the file storage Cdn, and the store is relatively regular.
For example, files under the Musicx folder:
Http://cdn.baidu.com/musicX/01.img or Http://cdn.baidu.com/musicX/1.img
Http://cdn.baidu.com/musicX/02.img or Http://cdn.baidu.com/musicX/2.img
......
Http://cdn.baidu.com/musicX/20.img or Http://cdn.baidu.com/musicX/20.img
(the "X" above represents 1-1000 of the different folder names Images1, images2~images1000. )
Now I want to enter or select the drop-down folder name in the PHP page input box to display all the file names and paths under the corresponding folders on the Web page, and click to implement the download.
Please enlighten the great god, thank you very much!
=====================================================================
Thanks for the reply, the problem has been basically solved.
Idea: Phpquery Gets the keyword, deposits the array, the Foreach loop reads, and curl determines whether the file exists, echo all the file addresses.
Reply content:
Find a station on the file storage Cdn, and the store is relatively regular.
For example, files under the Musicx folder:
Http://cdn.baidu.com/musicX/01.img or Http://cdn.baidu.com/musicX/1.img
Http://cdn.baidu.com/musicX/02.img or Http://cdn.baidu.com/musicX/2.img
......
Http://cdn.baidu.com/musicX/20.img or Http://cdn.baidu.com/musicX/20.img
(the "X" above represents 1-1000 of the different folder names Images1, images2~images1000. )
Now I want to enter or select the drop-down folder name in the PHP page input box to display all the file names and paths under the corresponding folders on the Web page, and click to implement the download.
Please enlighten the great god, thank you very much!
=====================================================================
Thanks for the reply, the problem has been basically solved.
Idea: Phpquery Gets the keyword, deposits the array, the Foreach loop reads, and curl determines whether the file exists, echo all the file addresses.
You can Baidu under
Phpquery, Snoopy these two libraries, combined with a few lines of code will be done