12 2016 档案
摘要:/** * 检查指定字符串是否为日期格式 年-月-日 * @param $date 日期字符串 * @return bool true 是日期格式 false 不是日期格式 */function valid_date($date){ //匹配日期格式 if (preg_match ("/^([0-9
阅读全文
摘要:function del_dir($dir) { if (strtoupper(substr(PHP_OS, 0, 3)) == 'WIN') { $str = "rmdir /s/q " . $dir; } else { $str = "rm -Rf " . $dir; } exec($str,$output,$retval); ...
阅读全文