0xV3NOMx
Linux ip-172-26-7-228 5.4.0-1103-aws #111~18.04.1-Ubuntu SMP Tue May 23 20:04:10 UTC 2023 x86_64



Your IP : 18.117.254.202


Current Path : /var/www/html/msruasapi/src/
Upload File :
Current File : /var/www/html/msruasapi/src/downloadStudPhoto.php

<?php

function downloadStudPhoto($aobj_context)
{ 
	$url = 
    'https://university-student-photos.s3.ap-south-1.amazonaws.com/030/student_photos/1001/baj/R17BJ001.jpg';
      
    $file_name = "photos/".basename($url);
   
    if (file_put_contents($file_name, file_get_contents($url)))
    {
        echo "File downloaded successfully";
    }
    else
    {
        echo "File downloading failed.";
    }
	
}

?>