PHP zip whole directory Creates a ZIP copy of the entire folders and files in the current directory. Copy the file zip-dir.php to the directory that will be added to the Zip file. Run zip-dir.php from your browser