关于thinkPHP 5.0-5.1部分版本index.php被修改为首页HTML代码问题,首先这个是thinkPHP的一个bug; 如果网站系统已经被入侵,那么要做以下操作: 1. 在thinkPHP核心类库 \thinkphp\library\think\App.php::module() 添加 ...
分类:
Web程序 时间:
2020-01-08 10:23:56
阅读次数:
104
1、关心你的技艺 Care About Your Work 如果你不在乎能否漂亮地开发出软件,你又为何要耗费生命区开发软件呢? 2、思考!你的工作 Think!About Your Work 关掉自动驾驶仪,接管工作。不断地批评和评估你的工作。 3、提供各种选择,不要找蹩脚的借口 Provide O ...
分类:
其他好文 时间:
2020-01-04 14:30:56
阅读次数:
76
<?php namespace app\admin\model; use think\Model; class GoodsCate extends Model { //获取分类树 public function get_tree ($pid = 0,$field = '*'){ $list = se ...
分类:
其他好文 时间:
2020-01-03 19:36:14
阅读次数:
65
TP6默认是单应用模式,开启多应用要分以下几个步骤 1.安装多应用模式扩展think-multi-app composer require topthink/think-multi-app 2.删除原有的controller (PS:这个必须得删,tp6按这个判断是否为单应用模式!!!) 3.新建应 ...
分类:
其他好文 时间:
2020-01-03 15:39:28
阅读次数:
3394
一.git安装(git可以保持最新版本) 1.thinkphp 的github 代码版本地址:https://github.com/top-think thinkPHP5.0 拆分为多个仓库,主要包括:应用项目:https://github.com/top-think/think核心框架:https ...
分类:
Web程序 时间:
2020-01-01 18:32:31
阅读次数:
98
1.安装composer cd /usr/local/src curl -sS https://getcomposer.org/installer | php mv composer.phar /usr/local/bin/composer 2.Composer 使用 chmod -R 777 /u ...
分类:
Web程序 时间:
2019-12-31 14:18:50
阅读次数:
115
Git同时push到多个远程仓库 添加第二个远程地址时使用以下命令: git remote set-url --add origin git@github.com:morethink/programming.git 查看远程分支:git remote -v origin git@git.coding ...
分类:
其他好文 时间:
2019-12-31 10:22:41
阅读次数:
83
靶场首页 构造POC POC1 该poc会执行phpinfo() http://your-ip:8080/index.php?s=/Index/\think\app/invokefunction&function=call_user_func_array&vars[0]=phpinfo&vars[1 ...
分类:
Web程序 时间:
2019-12-25 13:14:20
阅读次数:
259
网上有很多的文章教怎么配置MySQL服务器,但考虑到服务器硬件配置的不同,具体应用的差别,那些文章的做法只能作为初步设置参考,我们需要根据自己的情况进行配置优化,好的做法是MySQL服务器稳定运行了一段时间后运行,根据服务器的”状态”进行优化。 打开慢查询方法:其实打开mysql的慢查询日志很简单, ...
分类:
数据库 时间:
2019-12-21 20:21:44
阅读次数:
108
打开cmd切换到www目录下运行think E:\wamp64\www>php think run ThinkPHP Development server is started On <http://127.0.0.1:8000/> You can exit with `CTRL-C` Docume ...
分类:
Web程序 时间:
2019-12-19 21:01:03
阅读次数:
116