public function getUpdate() { ini_set("soap.wsdl_cache_enabled", "0"); $domen = $_SERVER['SERVER_NAME']; $href = $this->client->getUpdate($domen, IMAGECMS_NUMBER, $this->getSettings('careKey')); $all_href = $this->US . 'update/takeUpdate/' . $href . '/' . $domen . '/' . IMAGECMS_NUMBER . '/' . BUILD_ID; file_put_contents(BACKUPFOLDER . 'updates.zip', file_get_contents($all_href)); }