PHP compressed file password

Source: Internet
Author: User
PHP compressed file password
PHP implements file compression and I want to add a password.

As far as I know, using system commands can be implemented. PHP self-expanding can support compressing files and directories, but I don't know how to add a password.

Thank you.


By the way, I have attached an outstanding Post. I hope someone can give me some comments. thank you.
Http://bbs.csdn.net/topics/390755609


Reply to discussion (solution)

system("rar.exe a -p123456 e:\cheshi.rar e:\cheshi.txt");

Whether rar.exe is a system environment variable (or an absolute address)

system("rar.exe a -p123456 e:\cheshi.rar e:\cheshi.txt");

Whether rar.exe is a system environment variable (or an absolute address)



This .... Do you not need to call the system? Javascript does not exist.


system("rar.exe a -p123456 e:\cheshi.rar e:\cheshi.txt");

Whether rar.exe is a system environment variable (or an absolute address)



This .... Do you not need to call the system? Javascript does not exist.
Give up

For inter-server transmission, you can perform different or encrypted processing on the zip file, and then encrypt the key or decrypt it at the receiver.
Reference: http://blog.csdn.net/fdipzone/article/details/14048207

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.