This article introduces curlMulti, a cloning tool. With this tool, non-technical people can quickly clone the entire site.
Tool link:https://github.com/ares333/php-curl
Tool features:
1. Capture various resources of the website html\Css\Js\RAR compressed files, etc.
2. Parallel crawling, the crawling speed is amazing
Operation process:
This article uses mac for explanation.
##2. Preparation
Under normal circumstances, changing the URL will be ok. If the site to be cloned is very large, you need to add code in the first line:ini_set('memory_limit', '2048M');
3. Execute cloning
php site_clone1.php
4. Website storage directory
##Double-click index. html can open the cloned website.
Attachment: If you want faster cloning, do the following: 如果要测试500并发,那需要在终端多执行一行命令:ulimit -n 1000
以上内容仅供参考!
推荐视频教程:PHP视频教程
The above is the detailed content of How to clone an entire PHP website. For more information, please follow other related articles on the PHP Chinese website!