$filename='./image/7.jpg';
try{
if(!file_exists($filename)){
throw new Exception('文件不存在');
}
}catch(Exception $e){
echo '异常信息:'.$e->getMessage();
}
try{
if(!file_exists($filename)){
throw new Exception('文件不存在');
}
}catch(Exception $e){
echo '异常信息:'.$e->getMessage();
}
2017-04-06
echo gmdate('Y-m-d H:i:s', strtotime('2014-05-01 12:00:01'));
2017-04-04