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评论
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评论
控制器代码: 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评论
在TP框架中导出excell
原创 2016-08-03 11:33:59
1073阅读
1点赞
<?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阅读
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阅读
本人小菜鸟一仅仅。为了自我学习和交流PHP(jquery,linux,lamp,shell,javascript,server)等一系列的知识。小菜鸟创建了一个群。希望光临本博客的人能够进来交流。寻求共同发展。搭建平台。本人博客也有很多的技术文档,希望能够为你提供一些帮助。群: 19184816...
转载 2015-07-18 13:47:00
46阅读
2评论
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
xx
原创 2022-05-31 15:29:35
212阅读
之前开发的拼团的时候,有用到过定时任务,但是因为定时不是我负责的,所以也只是粗
转载 2022-08-18 12:09:40
160阅读
ontroller;class IndexController extends C
原创 2022-10-27 01:57:25
222阅读
步骤一:在入口文件index.php下绑定Admin模块(这时候别再Home同级手动创建Admin)具体操作:define('BIND_MODULE','Admin'); ,然后访问入口
转载 2018-05-23 13:03:00
56阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5