copy image to one server to another server

if(!file_exists(“images/products/”.cleanImage($result[‘productMainImage’]))){
$src = GUR_PATH.”/images/products/”.cleanImage($result[‘productMainImage’]);
$dest = “images/products/”.basename($src);
file_put_contents($dest, file_get_contents($src));
}

Leave a Reply

Your email address will not be published. Required fields are marked *