Hey guys, I am looking for an auto update solution for my software. I want to call a zip file from a remote server, download it, and then extract it's contents replacing old contents. Anyone have a solution for me? A total package would include a progress bar. I can also build this myself if I have the right leads. thanks! adbox
* Download from a remote server using cURL: - http://www.webdigity.com/index.php?action=tutorial;code=45 - http://snippets.dzone.com/posts/show/3919 * Compression: - http://php.net/manual/en/ref.zip.php
Here's the extracting part <? $filename="some.zip"; $url="http://www.somwhere.com/"; $contents = file_get_contents($url); $zip = new ZipArchive; $zip->open($filename, ZIPARCHIVE::CREATE) $zip->extractTo('dirtoextract/'); $zip->close(); ?> Code (markup): its easier to use css for progress bar