摘要: 命令: 安装计划任务:yum install -y vixie-cron service crond start 开启计划任务 service crond stop 关闭计划任务 service crond restart 重启计划任务 service crond status 查看计划任务运行状态 阅读全文
posted @ 2020-01-18 13:56 大熊童鞋 阅读(139) 评论(0) 推荐(0) 编辑
摘要: 1、is_null 和isset这两个函数都可以判断一个变量是否为null,它们对空字符串,0,false的认同是一样的.is_null = !isset(); 不同的是 isset是语法结构,is_null 是函数。就性能而言,语法结构相对优秀一点。所以很多地方推荐使用isset代替is_null 阅读全文
posted @ 2019-12-30 13:48 大熊童鞋 阅读(11838) 评论(0) 推荐(0) 编辑
摘要: 把字符串 "Hello world!" 中的字符 "world" 替换为 "Shanghai": <?php echo str_replace("world","Shanghai","Hello world!"); ?> 阅读全文
posted @ 2019-12-20 10:51 大熊童鞋 阅读(203) 评论(0) 推荐(0) 编辑
摘要: //查询一条数据 $info pdo_fetch('select * from '.tablename('ewei_shop_member').'where openid=:openid and uniacid=:uniacid limit 1',array(':uniacid'=>$_W['uni 阅读全文
posted @ 2019-12-20 10:49 大熊童鞋 阅读(206) 评论(0) 推荐(0) 编辑
摘要: $member = m("member")->getMember($openid, true);getMember()这个函数是在 addons/core/model/member.php中 load()->model('mc'); //load()->model() 加载系统model函数 // 阅读全文
posted @ 2019-12-20 10:25 大熊童鞋 阅读(490) 评论(0) 推荐(0) 编辑
摘要: 转载 https://www.90shengjie.cn/1020.html 阅读全文
posted @ 2019-12-19 11:06 大熊童鞋 阅读(1229) 评论(0) 推荐(0) 编辑
摘要: root@iZ2ze6u6go4pqpc56auxifZ redis]# redis-cli 127.0.0.1:6379> 阅读全文
posted @ 2019-12-17 11:36 大熊童鞋 阅读(104) 评论(0) 推荐(0) 编辑
摘要: 安装redis后,先引入 use think\cache\driver\Redis;控制器中写 //redis参数 $options= [ 'host' => '127.0.0.1', 'port' => 6379, 'password' => 'xxxxx', 'select' => 0, 'ti 阅读全文
posted @ 2019-12-17 10:47 大熊童鞋 阅读(1337) 评论(0) 推荐(0) 编辑
摘要: wget http://pecl.php.net/get/redis-4.2.0.tgz tar -zxvf redis-4.2.0.tgz cd redis-4.2.0 /usr/local/php5.6/bin/phpize ./configure --with-php-config=/usr/ 阅读全文
posted @ 2019-12-17 10:26 大熊童鞋 阅读(539) 评论(0) 推荐(0) 编辑
摘要: 一、->用来引用一个类的属性(变量)、方法(函数) 可以把->理解成调用的意思 <?php Class a{ Var $id; Function add(){ $this->id=”test”; echo “abc”; } } $b = new a; $b->add(); //调用类a中的add() 阅读全文
posted @ 2019-12-17 10:01 大熊童鞋 阅读(169) 评论(0) 推荐(0) 编辑