![](https://img-blog.csdnimg.cn/20201014180756757.png?x-oss-process=image/resize,m_fixed,h_64,w_64)
TP3.2.3
文章平均质量分 78
周大懵
这个作者很懒,什么都没留下…
展开
-
LNMP下的TP3.2的坑
1.nginx.conf中重写规则location / { if (!-e $request_filename) { rewrite ^(.*)$ /index.php?s=/$1 last; break; }}若不能,则在对应网站的nginx的网站.conf中include thinkphp.conf;thinkphp.conf一般是上述location内...转载 2018-03-09 11:44:17 · 522 阅读 · 0 评论 -
thinkphp下部署阶段404页面
Home下新增一个Controller<?php namespace App\Controller; use Think\Controller; class EmptyController extends Controller{ public function _empty() { echo "<script>locatio...原创 2018-04-16 16:51:47 · 442 阅读 · 0 评论 -
tp3.2中在index.php中判断手机登录与PC登录
<?phpheader("content-type:text/html; charset=utf-8");//是否手机端function ismobile() { // 如果有HTTP_X_WAP_PROFILE则一定是移动设备 if (isset ($_SERVER['HTTP_X_WAP_PROFILE'])) return true; //此条摘...原创 2018-05-22 17:18:41 · 808 阅读 · 0 评论 -
PHPStorm+WAMP+Fiddler打断点
google浏览器加上xdebug helper-1.4.3.crx,下载地址:http://www.downza.cn/soft/211550.html对应php下的拓展,下载xdebughttps://xdebug.org/download.php在php.ini中zend_extension ="d:/wamp64/bin/php/php7.1.11/ext/php_xdeb...原创 2018-07-23 14:27:06 · 209 阅读 · 0 评论 -
php简易excel下载
<?phpnamespace Home\Controller;use Think\Controller;class TestController extends Controller{ public function test(){ $data = [ [1,11,111,1111], [2,22,222,2222], [3,33,333,3333] ]...转载 2019-01-03 20:15:55 · 747 阅读 · 0 评论 -
TP3.2中用phpexcel导入导出
好久不用都忘记了,找到以前的代码,整理一下:存入ThinkPHP/Library/Vendor命名为PHPExcel导入:后台:public function addActivitydo(){if (!empty($_FILES)){$upload = new \Think\Upload(); // 实例化上传类$upload->maxSize = 10485...原创 2019-01-03 21:22:44 · 604 阅读 · 0 评论