Recently, I was developing my Wordpress plug-in ShareLink. during this process, I found the PHP class of the zip file for PclZip. I have to recommend it, another reason for recommendation is that I found a PHP function in its source code... recently, I was developing my Wordpress plug-in ShareLink. during this process, I found the PHP class of the zip file for PclZip. I have to recommend it, another reason for the recommendation is that the source code of the PHP function allows me to find the loose usage of a PHP function parameter. The following is an example.
Generate a zip file. usage 1: The code is as follows:
Create('file.txt, data/text.txt, folder '); if ($ v_list = 0) {die ("Error:". $ archive-> errorInfo (true ));}
The code is as follows:
Create ('data/file.txt, data/text.txt ', PCLZIP_OPT_REMOVE_PATH, 'data', PCLZIP_OPT_ADD_PATH, 'Install'); if ($ v_list = 0) {die ("Error: ". $ archive-> errorInfo (true ));}
If you see no parameters for the create method, you will know how to look at the method prototype. at least I have not used this method.
Tutorial URL:
You are welcome to add your _ favorites to the Favorites folder, but please keep the link for this article.