as_new ( )

Change compression type as create. Clear compression file, If compression file already exist.


require_once 'compress.php'; //attached source script library compression file into your project.
$zip = new ESCompress(); // initialized ESCompress compression object.
$result = $zip->as_new();  // Change compression type as create.


Do not use any parameter for this function.

Return Values

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

Mostly do not need to overwrite compression file. But by default overwrite compression file, If compression file exist. Use this function to remove compression file, Before compression .


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

What is the codrate ? 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 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