随笔分类 - php
摘要:.conf location / { index index.html index.htm index.php; #autoindex on; if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; } }
阅读全文
摘要:1.生成数据表 $table_name = config('database.prefix').'trade_mpos'; $tableName = $table_name; //dump($tableName);die; $isTable=db()->query('SHOW TABLES LIKE
阅读全文
摘要:/** * 事务 */ public function transaction(){ Db::startTrans(); try{ Db::name('version')->where('id','1')->update(['version'=>1.1]); Db::name('version')-
阅读全文
摘要:// 当月开始时间结束时间 $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
阅读全文
摘要:Excel:Excel 引入库文件,使用require 引入 $root = Env::get("root_path");//项目根目录 require $root.'extend/excel/PHPExcel.php'; require $root.'extend/excel/PHPExcel/I
阅读全文
摘要:我的项目下的.htaccess文件 <IfModule mod_rewrite.c> Options +FollowSymlinks -Multiviews RewriteEngine On RewriteCond %{REQUEST_FILENAME} !-d RewriteCond %{REQU
阅读全文
摘要:原以为是秘钥或者其他错误,后来发现是邮箱设置的问题 在GitHub的你账号网页上右上角,个人的登录退出的位置,找到setting: setting->emails->Keep my email address private,把这一项去掉勾选即可。 之前邮箱一直收到GitHub推送,所以改了设置,害
阅读全文
摘要:配置laravel时遇到的小错误 ps:php -S localhost:81 -t 框架目录/public S大写 端口不要被占用
阅读全文
摘要:去除HTML携带的标签常用函数 string strip_tags(string str); 编辑器存放内容到数据库时p标签会转换成这种<p></p> 需要使用htmlspecialchars_decode($x);进行转换
阅读全文

浙公网安备 33010602011771号