函数touch

if(file_exists($log)){//判断$log是否存在,如果不存在则创建$log
    touch($log);//touch是快速创建一个文件
    return $log;
}
posted @ 2014-01-03 23:56  long896130895  阅读(110)  评论(0编辑  收藏  举报