最近因為ipv6怪怪的,所以網頁載入外部資料時會被file_get_contents卡住,導致超時連結。除了可以改用curl之外。 也可以在file_get_contents中加入bindto函數。 自 PHP 5.1.0 起支援 bind […] PHP file_get_contents 讀取網頁資料時間過久解決方法