$where['enterprise_id'] = $enterpriseId; //企业名称不为空 if(!empty($enterpriseName)){     $where['enterprise_name'] = array('like',"%$enterpriseName%"); } $table2&nb
原创 2016-05-12 15:39:46
2243阅读

 一、阿帕奇域名已经开始访问的时候:(去掉index.php
原创 2023-04-05 20:18:56
103阅读
【代码】thinkphp 3.2查看sql。
原创 2024-01-16 16:12:57
1134阅读
http://www.tuicool.com/articles/nQFnQrR 1,sublime text 增强插件 右键可以打开文件目录 http://www.w3cfuns.com/notes/13810/d9b9ed2fb80785dae88a5344ef0f30d4.html 2,thin
转载 2016-10-10 16:22:00
194阅读
2评论
一、阿帕奇域名已经开始访问的时候:(去掉index.php) 访问路径: JS路径代码: 二、阿帕奇域名没开启:(没有掉index.php) 访问路径: JS路径代码:
原创 2021-06-04 23:00:29
273阅读
如果把一些常用但又不容易变的数据存缓存,而不是每次查数据库,这样能很大减轻数据库压力最近由于项目需要,就尝试了一把redis,但是后面又用了tp3.2的文件缓存,直接进入主题:在config.php中增加如下代码: 'DATA_CACHE_PREFIX' => 'tp',//缓存前缀 'DATA_CACHE_TYPE'=>'Redis'...
php
转载 2021-06-23 16:39:43
840阅读
控制器代码: public function index(){ $username=I("username"); $order=I("order"); $data=M('users')->where(array('username'=>$username))->order($order)->sele ...
转载 2021-07-23 12:16:00
248阅读
2评论
<?phpdefine('DIR_SECURE_FILENAME', 'default.html');//错误页面define('APP_PATH','./myapp/'); //项目路径require './ThinkPHP/ThinkPHP.php'; //引用文件<?phpdefine('DI...
转载 2014-12-04 17:27:00
99阅读
控制器代码: public function index(){ $id=I('id'); $res=M('users')->find($id); dump($res); } 复现: payload: id[table]=users where 1 and updatexml(1,concat(0x7 ...
转载 2021-07-22 17:47:00
508阅读
2评论
thinkphp5.01、查询$list = DB::table("tp5_websites")->where('id',15)->find();
原创 2023-06-13 14:48:08
189阅读
cd /home/wwwroot/default/smart/Public && php cron.php Test/test >> ../logs/cron.log 2>&1 这个命令的意思是,第一步,先进入Public目录下,然后通过php指令,结合cron.php,执行相关的代码。 把执行的结
原创 2021-08-05 15:21:09
397阅读
由于thinkphp3.2使用命名空间,而 PHPExcel没有使用,那么两者整合的最重要问题就是如何导入的问题。 一、PHPExcel.php和PHPExcel文件夹都放在ThinkPHP/Library/Org/Util下,PHPExcel.php修改为PHPExcel.class.php。 二
转载 2016-04-04 12:33:00
121阅读
2评论
/home/conf/config.php 中配置 'TOKEN_ON'=>true, 'TOKEN_NAME'=>'__hash__', 'TOKEN_TYPE'=>'md5', 'TOKEN_RESET'=>true, 令牌验证行为绑定,在tags.php中 <?php return array
转载 2016-03-30 14:57:00
237阅读
2评论
IndexController.class.php <?phpnamespace  Home\Controller;use Think\Controller;class IndexController extends Controller {  function index(){       &nbs
原创 2015-03-26 18:18:20
773阅读
首先确保你的电脑已经安装了wamp server,并且已经启动了wamp在浏览器里输入:htt
原创 2022-08-11 17:44:23
251阅读
http://redis.io/download
原创 2017-04-27 11:13:11
2315阅读
thinkphp3.2 开发环境搭建
原创 2017-03-15 18:29:25
2183阅读
第一步 :下载附件PHPMailer解压到ThinkPHP\Library\Vendor 第二步:在Common文件夹中的公共函数function.php中写一个发送邮件的函数, 这样可以在项目任意位置调用。 /** * 邮件发送函数 */ function sendMail($to, $title
原创 2021-07-09 15:09:56
290阅读
<?phpdefine('DIR_SECURE_FILENAME', 'default.html');define('APP_PATH','./index/'); //项目路径require './ThinkPHP/ThinkPHP.php'; //引用文件
转载 2014-12-04 17:30:00
95阅读
2评论
thinkphp3.2 where 条件查询在连贯操作中条件where的操作有时候自己很晕,所以整理下,有助于使用查询条件 支持的表达式查询,
原创 2022-10-12 15:43:05
171阅读
  • 1
  • 2
  • 3
  • 4
  • 5