$curDomain = $_SERVER['HTTP_HOST'];
$strHTML = file_get_contents('http://www.jb51.net/DomainParking.asp?gDomName='.$curDomain);
echo $strHTML
?>
I have seen on the Internet that file_get_contents is unstable, and I have encountered it. . .
On the other hand, it also shows that the fault tolerance of the program is very poor. . .
Well, let’s get down to business.
I encountered this error:
file_get_contents(http://***.php): failed to open stream: HTTP request failed!
After a while, I decided to use curl