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的示例代码

新手上路,请多包涵
宣传栏