11 2016 档案
存十进制
摘要:1 <style type="text/css"> 2 #t>div{padding:16px;} 3 #t dl{margin:16px 0;} 4 #t dt{padding:16px 16px 16px 0;color:#999;} 5 #t dd{display:inline;margin:
阅读全文
天气
摘要:1 //天气预报 2 $ch = curl_init(); 3 $url = "http://www.baidu.com/home/other/data/weatherInfo?city=$city"; 4 5 // 添加apikey到header 6 curl_setopt($ch, CURLOP
阅读全文
七牛(放文件视频直播)
摘要:点击内容管理 获取token 添加视频,如太极,学习视频等 点击"添加动作分解"
阅读全文
Linux--mysql
摘要:mysql> use mysql;Database changedmysql> update user set host='%' where user='yangsheng'; 修改密码:字段可能变了(authentication_string) mysql> use mysql;Database
阅读全文
发送短信(阿里大于)
摘要:1 protected function send_sms() 2 { 3 $mobile = I("post.mobile"); 4 if (!preg_match("/^(0|86|17951)?(13[0-9]|15[012356789]|17[0678]|18[0-9]|14[57])[0-
阅读全文
推送(后台消息),(全部用户推送)
摘要:后台效果: 后台代码(html): public function push_msg($ids) { $data = M("push_message")->field('id,description,status')->find($ids); // print_r($data);die; /*if(
阅读全文
推送(评论,点赞,关注)
摘要:if($pid>0){ $where = ['id' => $pid]; $push1 = M($table)->where($where)->find(); $msg['type'] = 1; $msg['id'] = $art_id; //文章id $msg['content']=$conten
阅读全文