I RENT a website, i found a position that i can control the var from $_GET and then the server will exec the function "move_uploaded_file(filename,destination)", the question is how to cut off the '.jpg', thanks a lot.
the php version is 5.6.40 or heigher the os is cloudlinux , centos7.6
$temp_str = $_GET['str'];
$destination = '/tmp/'.$temp_str.'.jpg';
move_uploaded_file(filename,$destination);