PHPの経験があまりなく、最近新しいホストに移動し、私のWebサイトは古いホストで完全に機能しましたが、新しいホストではコードにエラーがあります。
エラーメッセージは次のとおりです。
Warning: copy() [function.copy]: Unable to access http://i.imgur.com/USlH6p2.jpg in (directory)
エラーがあると言っているコードを次に示します
function upload_image_remote($image, $name) {
   $upload_dir = APP_PATH . '/image.uploads';
   //check for directory rights
   if(!is_writable($upload_dir)) {
      echo do_error(_('Folder image.uploads is not writeable'));
      exit;
   }
   //check if there's a directory for today uploads
   $today = date("d-m-Y");
   if(!is_dir($upload_dir .'/' . $today)) {
        if(!mkdir($upload_dir .'/' . $today, 0777)) {
            echo do_error(_(sprintf('Folder <strong>image.uploads/%s</strong> could not be created. Please check permissions to be 0777.', $today)));
            exit;   
        }
   }
   $upload_path = $upload_dir .'/' . $today;
   (--> this is where) return copy($image, $upload_path .'/'. $name);
}
(古いホスト)000webhostで完全に機能したため、パーミッションの問題である可能性があると思います。コードの何が問題なのか、誰か考えがありますか?
ありがとう