Enregistrer une image Utiliser PHP

<?php
// Image URL
$url = 'https://www.example.com/test.png';
 
// Image path
$img = '../images/test.png';
 
// Save image
file_put_contents($img, file_get_contents($url));
?>
mouaadBch