摘要:
function autumn_sendsms($tel,$stype){ $pd_go=true; if($tel==''){ $msg='手机号不能为空'; $pd_go=false; } if($stype==''){ $msg='类... 阅读全文
摘要:
默认情况下,mysql帐号不允许从远程登陆,只能在localhost登录。本文提供了二种方法设置mysql可以通过远程主机进行连接。 一、改表法 在localhost登入mysql后,更改 “mysql” 数据库里的 “user” 表里的 “host” 项,将”localhost”改称”%” 例如: 阅读全文
摘要:
手机正则 包括比如阿里的蚂蚁宝卡,腾讯的大王卡等等 /^(13[0-9]|14[579]|15[0-3,5-9]|16[6]|17[0135678]|18[0-9]|19[89])\d{8}$/ //19位全国正式唯一学籍号正则表达式 /^[A-Z]\d{6}(18|19|20)?\d{2}(0[1 阅读全文
摘要:
$(function(){ setInterval(function(){ //下滚动 // $("ul li:last").hide().prependTo("ul").slideDown(500); //选中ul当中的最后一个li,先让它隐藏,插入到ul第一个位置,最后让它出现 //上滚动 // 阅读全文
摘要:
->where('m.user_nickname|w.nickname|c.companyname','like','%'.$search.'%')\ 阅读全文
摘要:
http://wthrcdn.etouch.cn/weather_mini?city=北京通过城市名字获得天气数据,json数据http://wthrcdn.etouch.cn/weather_mini?citykey=101010100通过城市id获得天气数据,json数据 阅读全文
摘要:
function weather_request($curl,$https=true,$method='',$data=null){ $ch=curl_init(); // $user_agent = "Mozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/535.2 (KHTML, like Gecko) Chrome/1... 阅读全文
摘要:
function is_weixin() { if (strpos($_SERVER['HTTP_USER_AGENT'], 'MicroMessenger') !== false) { return true; } return false; } 阅读全文
摘要:
1.获取省份列表: http://119.29.166.254:9090/api/provinces 返回的是省份列表,其中id很重要。 2.通过省份id查询省份城市: http://119.29.166.254:9090/api/province/getCitiesByProvinceId?id= 阅读全文
摘要:
<?php namespace Mob\Controller; use Think\Controller; class WxmaterialController extends Controller { private $appId; private $appSecret; protected fu 阅读全文