分类 默认 下的文章
ipscan221.zip 局域网IP扫描工具
Firefox最后支持win7的版本
GHOSTEXP.EXE
TP5 [10501]SQLSTATE[HY000]: General error: 2006 MySQL server has gone away [thinkphp]
[10501]SQLSTATE[HY000]: General error: 2006 MySQL server has gone away
application/database.php 增加数据库断线重连配置
//断线重连
'break_reconnect' => true,
fastadmin table js 自定义样式css
{field: 'introduce', title: __('Introduce'),oprate:'Like',cellStyle: {css: {"max-width": "80px","white-space":"nowrap","overflow":"hidden","text-overflow":"ellipsis"}}},
php前几天开始算起往后几天的日期计算
/*
*参数 param day 近几天
*参数 param size 间隔几天
*/
public function card_list(){
$day=$this->request->param('day',1);
$size=$this->request->param('size',1);
#时间计算
$start_time =strtotime('-'.$day.' day');
$current_date =date('Y-m-d',$start_time);
$current_m=date('m',$start_time);
$current_d=date('d',$start_time);
$current_Y=date('Y',$start_time);
$start_date =$current_date.' 00:00:01';
$end_date = date('Y-m-d H:i:s',mktime(0,0,0,$current_m,$current_d+$size,$current_Y)-1);
echo $start_date;
echo '<br>';
echo $end_date;
}