This array, how to package the doc file download, to rename the doc file.
$qrList = Array (
Array
' Data ' =>array (
' ID ' =>1,
' Source ' = ' qrcodesale1kkk ',
' title ' = ' Large amount of ridge ',
' File ' = '/file/20150212/201576.doc '
),
),
Array
' Data ' =>array (
' ID ' =>2,
' Source ' = ' qrcode ',
' title ' and ' A keynote speech ',
' File ' = '/file/20150214/201502_52561.doc '
),
),
Array
' Data ' =>array (
' ID ' =>3,
' Source ' = ' qrcod ',
' Title ' = ' Great power relations ',
' File ' = '/file/20150212/24648.doc '
),
),
);
I want to package this array into a zipped zip, and rename the file inside the array to Titile.doc.
For example, the first file name is 201576.doc, after download automatically modified into large amount of ridge. doc
To seek the expert's guidance ...
Difficulties
How to download and package as Zip
How to extract the extension from file.
Third, how about the title replace the original file name:
------to solve the idea----------------------
Http://php.net/manual/zh/class.ziparchive.php, you're watching.