11 2020 档案
摘要:使用模板报驱动错误Driver [Think] not supported. 原因:tp6默认只能支持PHP原生模板,但配置文件config/view.php配置使用的却是Think 办法一:使用tp模板进行think-view安装composer require topthink/think-vi
阅读全文
摘要:php使用strip_tags()方法去除html有空白的解决办法 $content = '<div><br /><strong>这是一段带有html标签的文字</strong></div><div><br />文章内容文章内容文章内容文章内容文章内容</div>';$subject = strip
阅读全文
摘要:mysql时间相关函数 1,date_format(date, format) 函数,日期格式化函数, 2,unix_timestamp() 函数,当前时间戳,可传入时间格式的参数,得到对应的时间戳 3,str_to_date(str, format) 函数,日期格式化函数 4,from_unixt
阅读全文
摘要:1,配置CentOs8的yum源 vim /etc/yum.repos.d/CentOS-AppStream.repo [AppStream] name=CentOS-$releasever - AppStream baseurl=http://mirrors.aliyun.com/centos/$
阅读全文

浙公网安备 33010602011771号