This array, how to package the doc file download, to rename the doc file

Source: Internet
Author: User
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.
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.