Here is a brief introduction to Curl (), file_get_contents (), and snoopy. class. the three remote page capturing and collection tools in php are still vulnerable to snoopy attacks. class. php, because it is highly efficient and does not require server-specific configuration support, it can be used in common virtual hosts, file_get_contents () is less efficient, often used failure, curl () high efficiency and multi-thread support. However, you need to enable curl extension. The steps to enable curl extension are as follows:
1. copy the three php_curl.dll, libeay32.dll, and ssleay32.dll files in the PHP folder to system32;
2. remove the semicolon from php. ini (c: WINDOWS directory) and extension = php_curl.dll;
3. restart apache or IIS.
For more information about enabling CURL extension and enabling the server to support PHP curl functions (remote collection), refer to PHP Chinese website!