Create a mirror of a website with PHP and WGET
<?php
$url = 'http://www.example.com/';
exec('wget -mk -w 1 '. $url);
?>
References:
http://fosswire.com/post/2008/04/create-a-mirror-of-a-website-with-wget/
http://stackoverflow.com/questions/12766811/mirror-a-site-using-php