私はショッピング サイトを運営しており、このリモート gif 画像のコピーを jpg としてサーバーに保存しようとしています。
$i='http://www.medexsupply.com/images/RO1R910C.GIF';
$imagejpg = imagecreatefromgif($i);
そして、次のエラーが発生します:
Warning: imagecreatefromgif(): Couldn't resolve host name in /home/xxxxx/public_html/xxxxxxx/file.php on line 46
Warning: imagecreatefromgif(http://www.medexsupply.com/images/RO1R910C.GIF): failed to open stream: operation failed in /home/xxxxx/public_html/xxxxxxx/file.php on line 46
46行目のコードは
$imagejpg = imagecreatefromgif($i);
PHPスクリプト用に128MBのメモリ制限を持つ専用サーバーがあります。
allow_url_fopen がオンになっています。
サーバー上の任意の設定を変更できます。
他の何千ものリモート イメージをコピーできましたが、このイメージや他のサイトからのイメージはコピーできませんでした。
誰か助けてくれませんか。
詳しく知りたい方は返信ください。
ありがとうございました