我试图让一个脚本,将加载所需的URL(由用户输入),并在他们的域上我的网站上发布,如果该网页的链接回到我的域名查询。我不是很有经验的正则表达式,这是我到目前为止有: $loaded = file_get_contents('http://localhost/small_script/page.php');
// $loaded will be equal to the users site th
当我们使用file_get_contents时,PHP使用什么来解析域名(本地DNS?)。 我问,因为我得到这个错误: Warning: file_get_contents(http://external-domain.com) [function.file-get-contents]: failed to open stream: A connection attempt failed beca