摘要: 使用模板报驱动错误Driver [Think] not supported. 原因:tp6默认只能支持PHP原生模板,但配置文件config/view.php配置使用的却是Think 办法一:使用tp模板进行think-view安装composer require topthink/think-vi 阅读全文
posted @ 2020-11-11 17:15 执毫泼墨染青城 阅读(802) 评论(0) 推荐(0) 编辑
摘要: php使用strip_tags()方法去除html有空白的解决办法 $content = '<div><br /><strong>这是一段带有html标签的文字</strong></div><div><br />文章内容文章内容文章内容文章内容文章内容</div>';$subject = strip 阅读全文
posted @ 2020-11-10 17:56 执毫泼墨染青城 阅读(133) 评论(0) 推荐(0) 编辑
摘要: mysql时间相关函数 1,date_format(date, format) 函数,日期格式化函数, 2,unix_timestamp() 函数,当前时间戳,可传入时间格式的参数,得到对应的时间戳 3,str_to_date(str, format) 函数,日期格式化函数 4,from_unixt 阅读全文
posted @ 2020-11-05 18:07 执毫泼墨染青城 阅读(3686) 评论(0) 推荐(0) 编辑
摘要: 1,配置CentOs8的yum源 vim /etc/yum.repos.d/CentOS-AppStream.repo [AppStream] name=CentOS-$releasever - AppStream baseurl=http://mirrors.aliyun.com/centos/$ 阅读全文
posted @ 2020-11-05 17:13 执毫泼墨染青城 阅读(1564) 评论(0) 推荐(0) 编辑
摘要: 安装前请务必确保已经正确安装了PHP。 执行命令 php -v 查看是否正确输出php版本号。 下载安装脚本,执行命令: php -r "copy('https://install.phpcomposer.com/installer', 'composer-setup.php');" 下载compo 阅读全文
posted @ 2020-09-17 11:39 执毫泼墨染青城 阅读(244) 评论(0) 推荐(0) 编辑
摘要: 页面mate标签常用内容1,keywords用于告诉搜索引擎网页的关键字<meta name="keywords" content="关键字1,关键字2" />2,description用于告诉搜索引擎网页的主要内容<meta name="description" content="网页的描述" / 阅读全文
posted @ 2020-09-03 11:16 执毫泼墨染青城 阅读(215) 评论(0) 推荐(0) 编辑
摘要: 1,使用rpm -qa | grep mysql命令,检查系统是否已经安装了mysql,如果已经安装mysql,需要先卸载。 2,添加在线mysql源 vim /etc/yum.repos.d/mysql.repo 将下面的内容添加到mysql源 # Enable to use MySQL 8.0[ 阅读全文
posted @ 2020-08-18 01:06 执毫泼墨染青城 阅读(2629) 评论(0) 推荐(0) 编辑
摘要: 1,查看是否安装lrzsz,下图代表没有安装 rpm -qa|grep lrzsz 2,安装lrzsz yum -y install lrzsz 安装后,再次执行命令:rpm -qa|grep lrzsz 3,上传文件,执行rz命令,会弹出选择框,选择要上传的文件 4,下载文件到本地,sz file 阅读全文
posted @ 2020-08-17 22:36 执毫泼墨染青城 阅读(168) 评论(0) 推荐(0) 编辑
摘要: 1,查看防火墙状态 systemctl status firewalld.service 2,开启防火墙 systemctl start firewalld.service 3,关闭防火墙 systemctl stop firewalld.service 4,禁用防火墙 systemctl disa 阅读全文
posted @ 2020-08-17 00:41 执毫泼墨染青城 阅读(23314) 评论(0) 推荐(0) 编辑
摘要: 本教程操作环境是CentOS8.1,nginx版本是1.18.0 护体步骤: 1,安装yum-utils,输入命令:yum install yum-utils 2,添加nginx源。CentOS8系统自带的nginx源版本是1.14,这里我们自己创建高版本的nginx源,创建文件/etc/yum/r 阅读全文
posted @ 2020-08-14 00:47 执毫泼墨染青城 阅读(3907) 评论(0) 推荐(0) 编辑