这是一个php微博接口的有关问题

WBOY
Release: 2016-06-13 12:27:07
Original
847 people have browsed it

这是一个php微博接口的问题
我这个就是用官方的demo
首先我在新浪的开放平台申请了一个可以在本地测试的应用,基本配置是这样的


在config函数中是这样的

define( "WB_AKEY" , '2591。。。' );<br />define( "WB_SKEY" , 'd781abe6d6。。。。' );<br />define( "WB_CALLBACK_URL" , 'http://127.0.0.11/weibo/callback.php' );
Copy after login

在hosts中的配置是这样的:
127.0.0.11      shixi.com
我点击用微博账号登录时出现:
You don't have permission to access /weibo/
------解决思路----------------------
这个跟微博没关系。是你这个站点设置有问题吧。对那个文件夹没有访问权限。
------解决思路----------------------
127.0.0.1 www.yz.com
127.0.0.1 yz.com
127.0.0.1 admin.yz.com

我也这样配置的,好着啊

Related labels:
source:php.cn
Statement of this Website
The content of this article is voluntarily contributed by netizens, and the copyright belongs to the original author. This site does not assume corresponding legal responsibility. If you find any content suspected of plagiarism or infringement, please contact admin@php.cn
Popular Tutorials
More>
Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template
About us Disclaimer Sitemap
php.cn:Public welfare online PHP training,Help PHP learners grow quickly!