随笔分类 -  php

摘要:.conf location / { index index.html index.htm index.php; #autoindex on; if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; } } 阅读全文
posted @ 2021-11-18 10:25 子岚天羽卿怜水 阅读(138) 评论(0) 推荐(0)
摘要:1.生成数据表 $table_name = config('database.prefix').'trade_mpos'; $tableName = $table_name; //dump($tableName);die; $isTable=db()->query('SHOW TABLES LIKE 阅读全文
posted @ 2021-07-15 15:07 子岚天羽卿怜水 阅读(259) 评论(0) 推荐(0)
摘要:/** * 事务 */ public function transaction(){ Db::startTrans(); try{ Db::name('version')->where('id','1')->update(['version'=>1.1]); Db::name('version')- 阅读全文
posted @ 2021-07-15 11:03 子岚天羽卿怜水 阅读(156) 评论(0) 推荐(0)
摘要:// 当月开始时间结束时间 $this_month_start = strtotime(date('Y-m-d H:i:s', strtotime("first day of this month 00:00:00"))); $this_month_end = strtotime(date('Y-m 阅读全文
posted @ 2021-07-14 10:51 子岚天羽卿怜水 阅读(57) 评论(0) 推荐(0)
摘要:Excel:Excel 引入库文件,使用require 引入 $root = Env::get("root_path");//项目根目录 require $root.'extend/excel/PHPExcel.php'; require $root.'extend/excel/PHPExcel/I 阅读全文
posted @ 2021-06-08 10:31 子岚天羽卿怜水 阅读(166) 评论(0) 推荐(0)
摘要:我的项目下的.htaccess文件 <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQU 阅读全文
posted @ 2020-11-24 13:43 子岚天羽卿怜水 阅读(70) 评论(0) 推荐(0)
摘要:use think\Config; 阅读全文
posted @ 2019-09-21 10:42 子岚天羽卿怜水
摘要:原以为是秘钥或者其他错误,后来发现是邮箱设置的问题 在GitHub的你账号网页上右上角,个人的登录退出的位置,找到setting: setting->emails->Keep my email address private,把这一项去掉勾选即可。 之前邮箱一直收到GitHub推送,所以改了设置,害 阅读全文
posted @ 2018-06-24 22:12 子岚天羽卿怜水 阅读(182) 评论(0) 推荐(0)
摘要:配置laravel时遇到的小错误 ps:php -S localhost:81 -t 框架目录/public S大写 端口不要被占用 阅读全文
posted @ 2018-01-07 16:12 子岚天羽卿怜水 阅读(1826) 评论(0) 推荐(0)
摘要:去除HTML携带的标签常用函数 string strip_tags(string str); 编辑器存放内容到数据库时p标签会转换成这种&lt;p&gt;&lt;/p&gt; 需要使用htmlspecialchars_decode($x);进行转换 阅读全文
posted @ 2017-11-06 11:03 子岚天羽卿怜水 阅读(185) 评论(0) 推荐(0)