Skip to content

Instantly share code, notes, and snippets.

<?php
/**
* Get Plugin Headers
*
* Get the header information from all plugins in
* the plugins pool for use later on.
*
* @param mixed $plugin
*/
public function get_plugin_headers($plugin)
<?php
// Config Vars
$sourcefolder = "./" ; // Default: "./"
$zipfilename = "myarchive.zip"; // Default: "myarchive.zip"
$timeout = 5000 ; // Default: 5000
// instantate an iterator (before creating the zip archive, just
// in case the zip file is created inside the source folder)
// and traverse the directory to get the file list.