12 2017 档案

摘要:class fanyi{ public function fahui($res) { $url="http://api.fanyi.baidu.com/api/trans/vip/translate"; $q=urlencode($res); $from="auto"; $to="auto"; $appid="你的appid"; ... 阅读全文
posted @ 2017-12-29 20:06 自由无风 阅读(806) 评论(0) 推荐(0)
摘要:index.php wechat.inc.php 授权登陆 indexs.php 阅读全文
posted @ 2017-12-06 20:21 自由无风 阅读(1084) 评论(0) 推荐(1)
摘要:index.php wechat.inc.php 阅读全文
posted @ 2017-12-02 19:21 自由无风 阅读(325) 评论(0) 推荐(0)
摘要:curl.php WeChat.inc.php 阅读全文
posted @ 2017-12-02 18:34 自由无风 阅读(16421) 评论(2) 推荐(0)
摘要:header('Content-type:text'); define("TOKEN", "weixin"); $wechatObj = new wechatCallbackapiTest(); if (isset($_GET['echostr'])) { $wechatObj->valid(); }else{ $wechatObj->responseMsg(); } clas... 阅读全文
posted @ 2017-12-01 19:18 自由无风 阅读(251) 评论(0) 推荐(0)
摘要:获取CURL请求的输出信息 在curl_exec()函数执行之后,可以使用curl_getinfo()函数获取CURL请求输出的相关信息,示例代码如下: 上述代码中curl_getinfo返回的是一个关联数组,包含以下数据: url:网络地址。 content_type:内容编码。 http_cod 阅读全文
posted @ 2017-12-01 19:11 自由无风 阅读(5755) 评论(0) 推荐(0)