//判断这个图片文件是否存在,存在显示中图,部存在显示大图
if(!@fopen($result1['picpath'],'r')){
$result1['picpath']=$qianmian.$houzui;
}
//判断文件是否存在
file_exists();
//判断这个图片文件是否存在,存在显示中图,部存在显示大图
if(!@fopen($result1['picpath'],'r')){
$result1['picpath']=$qianmian.$houzui;
}
//判断文件是否存在
file_exists();
转载于:https://www.cnblogs.com/yuwensong/p/3340682.html