SAE 接入微信JS-SDK不能本地写的问题

Warning: fopen(access_token.json) [function.fopen]: failed to open stream: Permission denied in jssdk.php on line 79

Warning: fwrite() expects parameter 1 to be resource, boolean given in jssdk.phpon line 80

Warning: fclose() expects parameter 1 to be resource, boolean given in jssdk.phpon line 81

Warning: fopen(jsapi_ticket.json) [function.fopen]: failed to open stream: Permission denied in jssdk.php on line 56

Warning: fwrite() expects parameter 1 to be resource, boolean given in jssdk.phpon line 57

Warning: fclose() expects parameter 1 to be resource, boolean given in jssdk.phpon line 58

SAE环境下接入微信js时出现的问题,用的SAE,查了一下说是SAE没有本地读写权限,哪位大哥遇到过,给解决下,非常感谢!!

阅读 5.9k
2 个回答

把access token存储到SAE的memcache里面

具体代码参照SAE的示例代码

新手上路,请多包涵
撰写回答
你尚未登录,登录后可以
  • 和开发者交流问题的细节
  • 关注并接收问题和回答的更新提醒
  • 参与内容的编辑和改进,让解决方法与时俱进
宣传栏