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评论
控制器代码: 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评论
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阅读
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评论
第一步 :下载附件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阅读
ontroller;class IndexController extends C
原创
2022-10-27 01:57:25
222阅读
public function imgColor($imgUrl) { $imageInfo = getimagesize($imgUrl); //图片类型 $imgType = strtolower(substr(image_type_to_extension($imageInfo[2]), 1)); //对应函数 $imageFun = 'imagec...
原创
2022-05-31 15:33:10
65阅读
首先在配置文件中配置路由 'URL_ROUTER_ON' => true, 'URL_ROUTE_RULES'=>array( 'index/:wather' => 'Api/read', &
原创
2015-05-15 15:29:43
1388阅读
$members=$model->table('zhope_card A') ->join('zhope_user U ON A.adduser=U.id',"LEFT") ->join('zhope_tpl T ON A.tpl=T.id') ->field('A.id AS I,A.cid AS
原创
2022-05-31 15:29:35
212阅读
之前开发的拼团的时候,有用到过定时任务,但是因为定时不是我负责的,所以也只是粗
转载
2022-08-18 12:09:40
160阅读
ThinkPHP3.2中的view文件,默认建在模块view文件夹下,并且在默认下,在view文件夹下一个控制器分配一个目录,目录名与控制器名相同,同时不同的方法对应一个与方法名相同的view。如控制器名为UploadImg,可在view文件夹下新建一个文件夹为UploadImg。如我在改控制器中要使用的方法名为:upload,则在UploadImg要新建文件名为upload.html以上做完了,
原创
2015-07-03 17:57:41
851阅读