我正在研究 Pete Warden 的 Twitter OAuth 非官方示例,here .
我在一些事情上需要帮助...我试图让它通过 localhost 工作,但我无法获得我设置为 http://bit.ly/localhost 的回调 URL/twitter/index.php/
当我登录时将我带回原始页面 index.php
,位于 localhost/twitter/index.php
登录链接的起始位置。相反,它将我带回到本地主机的基础。
另外,我得到一个错误Notice: A session had already been started - ignoring session_start() in C:\wamp\www\twitter\index.php on line 295
我看不到 session 是如何开始的...这实际上是他整个示例中所有文件中调用 session_start()
的唯一位置。
如果您能弄清楚为什么会发生这些事情,请告诉我。
最佳答案
你可能有 session.auto_start = 1
在你的 php.ini 中。
您可以通过调用 phpinfo()
来检查它是否已启用。
关于php - 使用 Twitter OAuth...需要一些帮助,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/6549104/