代码如下 | 复制代码 |
$a =time(); echo date('y-m-d',$a); $array = array('jpg','gif','png','jpeg'); $picimg ='/upfile/upload_pic/thumbnail_1258615556.jpg'; $img = strtolower($picimg); $ext = substr($img,strrpos($img,'.')+1); echo $ext; if( !in_array( $ext,$array ) ) { exit('缩略图地址错误,请重新上传!'); } |
//$_files['inputname']['type']
$_files['inputname']['type']
时间: 2025-01-01 08:19:45