
微信开发
一滴水墨.
1
展开
-
PHP cURL获取微信公众号access_token
用PHP获取微信公众号的access_token是会用到强大的cURL,一般来说平常获取access_token代码如下 //请求url地址 $appId = 'yourAppId'; $appSecret = 'yourAppSecret'; $url = "https://api.weixin.qq.com/cgi-bin/token?grant_type=client_credentia...转载 2018-09-28 11:13:23 · 575 阅读 · 0 评论 -
file_get_contents 无法请求微信https接口的问题
做微信公众平台开发,要通过读取公众平台的一个网址实时获得access_token,用了file_get_contents 在本地测试一切正常,但在服务器上却返回空数据。经过网上查资料原来要修改php.ini中的一个默认配置: 1.windows下的PHP,只需要到php.ini中把extension=php_openssl.dll前面的;删掉,重启服务就可以了。 2.linux下的PHP,就必须...转载 2018-09-28 11:11:03 · 700 阅读 · 0 评论