0
我使用file_get_contents
函數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');
?>
最有可能的某種重定向,因爲http://www.youtube.com將被重定向到https。也許嘗試直接訪問https版本。 –