How to unzip a file
function _get_ziped_report($path) {
//Opens the zip arichive
$zip = zip_open($path);
do {
//Read all files until...
$entry = zip_read($zip);
...desired file is found
} while ($entry && zip_entry_name($entry) != "report.htm");
// open entry
if (zip_entry_open($zip, $entry, "r")) {
$entry_content = zip_entry_read($entry, zip_entry_filesize($entry));
//Some check to see if it contains anything
if (strlen($entry_content) > 10) {
return $entry_content;