摘要: <?php /** * Created by PhpStorm. * User: Administrator * Date: 16-2-1 * Time: 下午11:39 */ namespace Home\Controller; use Think\Controller; class CateCo 阅读全文
posted @ 2016-02-02 00:20 FinnYY 阅读(186) 评论(0) 推荐(0) 编辑
摘要: private function http_get_data($url){ $ch = curl_init($url) ; curl_setopt($ch, CURLOPT_RETURNTRANSFER, true) ; // 获取数据返回 curl_setopt($ch, CURLOPT_BINA 阅读全文
posted @ 2016-02-01 16:16 FinnYY 阅读(3353) 评论(0) 推荐(0) 编辑
摘要: dracut-initqueue[624]:Warning: Could not boot.dracut-initqueue[624]:Warning: /dev/root does not exist.Starting Dracut EmergencyShell…Warning: /dev/roo... 阅读全文
posted @ 2016-01-16 15:38 FinnYY 阅读(3306) 评论(0) 推荐(0) 编辑
摘要: 1、HTML端 *请输入昵称|中奖码|手机号|奖品名称 2、PHP端 ... 阅读全文
posted @ 2016-01-14 15:41 FinnYY 阅读(322) 评论(0) 推荐(0) 编辑
摘要: PHP命令找不到: export PATH=$PATH:/usr/local/php/bin https://www.centos.bz/forum/thread-69-1-1.html 步骤: wget --no-check-certificate http://www.centos.bz/ezh 阅读全文
posted @ 2016-01-12 17:45 FinnYY 阅读(208) 评论(0) 推荐(0) 编辑
摘要: 1、html页面 ... 阅读全文
posted @ 2016-01-08 13:56 FinnYY 阅读(1349) 评论(0) 推荐(0) 编辑
摘要: 阅读全文
posted @ 2016-01-07 15:04 FinnYY 阅读(1230) 评论(0) 推荐(0) 编辑
摘要: public function rewardlog(){ $adminNav = C('ADMIN_NAV'); $adminNav[1]['class'] = 'cur'; $this->assign('adminNav',$adminNav); ... 阅读全文
posted @ 2016-01-07 14:49 FinnYY 阅读(627) 评论(0) 推荐(0) 编辑
摘要: 1、多表查询(左连接) SELECT a.*,b.*,b.id AS reid,c.*,c.id AS prid FROM `1008_user` a LEFT JOIN `1008_reward` b ON a.id = b.uid LEFT JOIN `1008_prize` c ON c.id 阅读全文
posted @ 2016-01-07 09:27 FinnYY 阅读(154) 评论(0) 推荐(0) 编辑
摘要: 开启表单令牌:先在配置文件目录下定义tags.php 在里面添加return array( 'view_filter' =>array('Behavior\TokenBuildBehavior'), //view_filter貌似必须为小写 //'view_filter' =>array... 阅读全文
posted @ 2016-01-04 23:20 FinnYY 阅读(412) 评论(0) 推荐(0) 编辑