图片命令
作者:互联网
$key = date('Y')."/".date('m')."/".date('d').'/'.substr(md5($file), 0, 5) . date('YmdHis') . rand(0, 9999) . '.' . $ext;
$key = "2020/08/05/0bfd0202008052252373349.jpg";
$file = $_FILES['file']['tmp_name'];
$pathinfo = pathinfo($_FILES['file']['name']);
$ext = $pathinfo['extension'];
标签:FILES,name,pathinfo,命令,ext,file,date,图片 来源: https://www.cnblogs.com/aln0825/p/13443382.html