1. 首页
  2. 数据库
  3. 其它
  4. php 获取远程网页内容的函数

php 获取远程网页内容的函数

上传者: 2021-01-31 01:17:02上传 PDF文件 24.81KB 热度 26次
<?php $curDomain = $_SERVER[‘HTTP_HOST’]; $strHTML = file_get_contents(‘https://www.jb51.net/DomainParking.asp?gDomName=’.$curDomain); echo $strHTML ?> 早就在网上看到说file_get_contents不稳定,果然碰到了。。。 另一方面也说明了程序的容错性很差啊。。。 恩,言归正传吧。 碰到的是这个错误: file_get_contents(http://***.php): failed to ope
下载地址
用户评论