Sometimes the use of some online manuals, such as domestic or foreign, some are slow access, some are the author of the direct bar site is closed, some servers are always down, so or the overall cloning to their own server relatively cool. Already given here a demo
getrequest ()->iscli ()) { ares_http::error403 (); } Include ' curlmulti/curlmulti.php '; Include ' curlmulti/mycurl.php '; Include ' phpquery.php '; }}
Getappdirectory (). '/data/manual '; $cacheDir = $this->getbasedir (). '/cache/curl '; if (! Is_dir ($cacheDir)) { mkdir ($cacheDir); } $curl = new Curlmulti (); $curl->maxthread = ten; $curl->cache [' enable '] = true; $curl->cache [' enabledownload '] = true; $curl->cache [' dir '] = $cacheDir; $curl->cache [' compress '] = true; $clone = new Mycurl_clone ($curl, $url, $dir); $clone->overwrite = true; $clone->start (); return false; }}
Corresponding files included I've uploaded it. http://download.csdn.net/detail/tiaozhanji_xian/8951277, free of points
Copyright NOTICE: This article for Bo Master original article, without Bo Master permission not reproduced.