For more complex page crawling, you can consider using the curl method. For details, you can refer to the following articles: How to use CURL to forge IP source in PHP php code for using curl to determine whether a remote file exists php uses curl to fake IP source code php simulated login to qq mailbox (detailed explanation of curl command) php curl learning summary curl command simulates form upload file In addition, for the usage of php file_get_contents function, you can refer to the following articles: php file_get_contents function proxy obtains the code of the remote page Problems using the php file_get_contents function The relationship between PHP-CGI process CPU 100% and file_get_contents function Examples of POST data using socket, curl, file_get_contents methods http://www.w3school.com.cn/php/func_filesystem_file_get_contents.asp |