required php code to download a file from sub folder of a server -
say server www.abc.com
in server there sub folder images in 1 excel file there i.e. a.xls; download file local computer need php code same
this not php want share solution. how "wget" on linux or cygwin on windows.
1. create list files needed dowload "list.txt" (one file 1 line)
2. create shell script file "download.sh"
while read file; wget $file done < /path/to/file/list.txt
3. on linux, make "download.sh" available executed.
chmod +x /path/to/file/download.sh
4. execute file
./path/to/file/download.sh
Comments
Post a Comment