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
175阅读
2评论
IndexController.class.php <?phpnamespace  Home\Controller;use Think\Controller;class IndexController extends Controller {  function index(){       &nbs
原创 2015-03-26 18:18:20
760阅读
首先确保你的电脑已经安装了wamp server,并且已经启动了wamp在浏览器里输入:htt
原创 2022-08-11 17:44:23
223阅读
控制器代码: 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
226阅读
2评论
<?phpdefine('DIR_SECURE_FILENAME', 'default.html');//错误页面define('APP_PATH','./myapp/'); //项目路径require './ThinkPHP/ThinkPHP.php'; //引用文件<?phpdefine('DI...
转载 2014-12-04 17:27:00
89阅读
控制器代码: 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
454阅读
2评论
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
366阅读
由于thinkphp3.2使用命名空间,而 PHPExcel没有使用,那么两者整合的最重要问题就是如何导入的问题。 一、PHPExcel.php和PHPExcel文件夹都放在ThinkPHP/Library/Org/Util下,PHPExcel.php修改为PHPExcel.class.php。 二
转载 2016-04-04 12:33:00
119阅读
2评论
在TP框架中导出excell
原创 2016-08-03 11:33:59
1031阅读
1点赞
thinkphp3.2 开发环境搭建
原创 2017-03-15 18:29:25
2148阅读
第一步 :下载附件PHPMailer解压到ThinkPHP\Library\Vendor 第二步:在Common文件夹中的公共函数function.php中写一个发送邮件的函数, 这样可以在项目任意位置调用。 /** * 邮件发送函数 */ function sendMail($to, $title
原创 2021-07-09 15:09:56
237阅读
<?phpdefine('DIR_SECURE_FILENAME', 'default.html');define('APP_PATH','./index/'); //项目路径require './ThinkPHP/ThinkPHP.php'; //引用文件
转载 2014-12-04 17:30:00
85阅读
2评论
thinkphp3.2 where 条件查询在连贯操作中条件where的操作有时候自己很晕,所以整理下,有助于使用查询条件 支持的表达式查询,
原创 2022-10-12 15:43:05
128阅读
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
62阅读
ontroller;class IndexController extends C
原创 2022-10-27 01:57:25
189阅读
首先在配置文件中配置路由    'URL_ROUTER_ON'   => true,    'URL_ROUTE_RULES'=>array(        'index/:wather' => 'Api/read', &
原创 2015-05-15 15:29:43
1290阅读
之前开发的拼团的时候,有用到过定时任务,但是因为定时不是我负责的,所以也只是粗
转载 2022-08-18 12:09:40
137阅读
$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
201阅读
控制器通过$_GET['ticket']获取ticket参数,如果ticket参数是urlencode的数据,thinkphp会进行urldecode,却把%2B变成了空格,坑。 $GET_TICKET = str_replace(" ","+",trim($_GET['ticket'])); ...
转载 2021-07-27 11:30:00
171阅读
2评论
最近一直没用nginx 昨天将tp3.2的项目部署到Ubuntu下的nginx下,发现忘记怎么配置的了 特将配置方式记录下来,以方便日后查找 重启nginx
转载 2019-04-01 12:52:00
191阅读
2评论
  • 1
  • 2
  • 3
  • 4
  • 5