overwrite ( )

Change compression type as overwrite. If compression file already exist overwrite current file.


require_once 'compress.php'; //attactched source script library compression file into your project.
$zip = new ESCompress(); // initialized ESCompress compression object.
$result = $zip->overwrite();  //Change compression type as overwrite.
$zip->compress('test.zip'); // Compress by using given path.


Do not use any parameter for this function.

Return Values

(array) Returns true , If has been attached success or fail return (boolean) false .

By default overwrite compression file, If compression file already exist.

It's mean, If files or sub-folders path both inside of compression file and folder are same those are overwrite in compression file. Some sub-folders and files not existing in compression file, Those are attached from folder. Other files and sub-folders inside of compression file, Those are nothing happen.


function () add_file published
function () add_folder published
function () as_new published
function () compress published
function () extract published

What is the codrate ?

codrate.com is a standard, fast cross browsing and highly versatile site. It is useful for many large number of Program Development Industries. So you can get support form Codrators , who are the codrate's joiners around world to help your program developments, You can answer other codrator's questions. Communicate with them. Share your knowledge with them. Do you have an interest in programming, So publish your articles about programming. It will help to maintain your professional co-profile. Actually codrate.com is not such as a regular web site. It will be gave new experience, best narrow cross-browser view, reduce processing time to receive browsing request, it's mean do not wasting your time to browsing codrate's web pages because it has been upgrade always modern coding ways. So, what do you waiting for ?. Try your own.

Copyright 2015 Pride - Company. Design by Esila