當我在laravel 4中使用庫干預/圖片時,使用一段代碼$ image = Image :: make($ url)錯誤:
file_get_contents(http://ticket.at-newyork.com/image/tenboudai/rockfeller-top.jpg): failed to open stream: HTTP request failed! HTTP/1.1 410 Gone
我已經研究了許多計算器解決方案,嘗試前:使用用urlencode,但我還有一個錯誤:
file_get_contents(http%3A%2F%2Fticket.at-newyork.com%2Fimage%2Ftenboudai%2Frockfeller-top.jpg): failed to open stream: No such file or directory
請不要建議我用捲曲,因爲file_get_contents()函數是代碼庫中,我不能改變。謝謝
具有承載了圖像防止盜鏈的服務器? – frankle
我不明白,我只知道捲曲可以解決問題,但我不能使用,因爲它是庫中的代碼,所以我不能改變 –
我剛剛嘗試捲曲,它不起作用,它返回410狀態碼。圖像/網站的所有者已阻止您像這樣遠程訪問圖像。谷歌「防止盜鏈」。 – frankle