接收“未定义索引:端口”使用 tmhOAuth 时
我在这里使用了教程:
http://140dev.com/ twitter-api-programming-tutorials/hello-twitter-oauth-php/
创建一个向 Twitter 发布推文的系统,当用户向自己的网站发布内容时我可以使用该系统。不幸的是,我无法让它工作,当我调用该函数时,我收到错误“错误:[8]未定义索引:端口”,该错误出现在 thmOAuth.php 的第 200 行,其中显示“$port = @$parts['港口'];”
现在据我所知,这意味着“端口”尚未在任何地方设置,但没有使用 thmOAuth 的教程提到任何有关设置端口的内容,而且我看不到在哪里设置它,所以有人知道这里出了什么问题吗?
感谢帮助。
I used the tutorial here:
http://140dev.com/twitter-api-programming-tutorials/hello-twitter-oauth-php/
To create a system of posting tweets to Twitter that I can use when a user posts something to their own website. Unfortunately I can't get it to work, when I call the function I receive the error "Error: [8] Undefined index: port" which occurs on line 200 of thmOAuth.php which says "$port = @$parts['port'];"
Now as far as I can tell that means 'port' hasn't been setup anywhere but no tutorial that uses thmOAuth mentions anything about setting a port and I can't see where to set it, so anyone know what is going wrong here?
Help is appreciated.
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
解决此问题的一个简单方法是在脚本中的主机名后面添加“:80”(如果是 HTTP)或“:443”(如果是 HTTPS)。包含脚本的相关部分以获取更多详细信息。
A simple fix to this problem would be to add ':80' (if HTTP) or ':443' (if HTTPS) after the hostname in your script. Include relevant parts of your script to get more details.