【发布时间】:2015-11-11 08:31:38
【问题描述】:
我在PHP 中使用file_get_contents 函数从运行良好的网站获取数据。但是对于这个网址:
那里没有得到实际的内容。
<?php
echo file_get_contents('http://benalman.com/code/projects/php-simple-proxy/ba-simple-proxy.php?url=http%3A%2F%2Fwww.goolge.com%2F');
?>
【问题讨论】:
-
很可能是某种重定向,因为youtube.com 将被重定向到 https。也许尝试直接访问https版本。
标签: php file-get-contents