RHSA-2018:0151-重要: 内核 安全和BUG修复更新
升级命令
yum update kernel
yum update kernel-devel
yum update kernel-headers
yum update kernel-tools
yum update kernel-tools-libs
yum update python-perf
升级命令
yum update kernel
yum update kernel-devel
yum update kernel-headers
yum update kernel-tools
yum update kernel-tools-libs
yum update python-perf
/\D+/u
*正册表达式 /\d+/ 匹配纯数字 /^[a-zA-Z0-9]+/u匹配大小写字母和数字
*正则表达式 /\D+/u 匹配非数字 /[^x00-xffA-Z]+/u 匹配纯中文字符
/[^x00-xff]+/u //匹配双字节
/[\x{4e00}-\x{9fa5}]+/u //仅仅匹配UTF8的汉字
1.开启子域名及部署 /app/config.php
// 域名部署
'url_domain_deploy' => true,
// 域名根,如thinkphp.cn
'url_domain_root' => 'kinmor.com',
2.添加路由规则: /simplewind/cmf/behavior/InitHookBehavior.php
Route::domain('m','mobile');
配置成功:将m.kinmor.com 指向 mobile模块
<?php
echo date('Y-m-01', strtotime('+1 month'));
echo "<br/>";
echo date('Y-m-t', strtotime('+1 month'));
echo "<br/>";
?>
<?php
$chars=['A','B','C','D','E','F','G','H','I','J','K','L','M','N','O','P','Q','R','S','T','U','V','W','X','Y','Z'];
$n=3;
print_r(array_intersect_key($chars,array_flip(array_rand($chars,$n))));
?>
//计算剩余天数
$date_num= (strtotime($end_time)-strtotime($begin_time))/(24 * 3600);
//总天数
$total_day=date('t');