摘要: <?php $wechatObj = new wechat(); $wechatObj->responseMsg(); class wechat { public function responseMsg() { // 接 收 数 据 // $postStr = $GLOBALS["HTTP_RAW 阅读全文
posted @ 2017-09-21 16:29 小蜗牛灬 阅读(145) 评论(0) 推荐(0)
摘要: <?php // //最简单的验证方式 // echo $_GET["echostr"]; //验证是否来自于微信 function checkWeixin(){ //微信会发送4个参数到我们的服务器后台 签名 时间戳 随机字符串 随机数 $signature = $_GET["signature" 阅读全文
posted @ 2017-09-21 16:24 小蜗牛灬 阅读(270) 评论(0) 推荐(0)
摘要: $POST $_POST是我们最常用的获取POST数据的方式,它是以关联数组方式组织提交的数据,并对此进行编码处理,如urldecode,甚至编码转换,识别的数据类型是PHP默认识别的数据类型 application/x-www.form-urlencoded 无法解析如text/xml,appli 阅读全文
posted @ 2017-09-21 16:21 小蜗牛灬 阅读(344) 评论(0) 推荐(0)