Created 8 month back

How to copy image in php

<?php

$image = 'photo.png';
$new_image = 'photo-new.png';

if (!copy($image, $new_image)) {
    echo "failed to copy {$image}...\n";
}

?>