douyan8070 2011-07-16 18:03
浏览 31

$ oauth-> fetch的问题

I'm having a problem with the following code:

define("TWITTER_CONSUMER_KEY", "consumer-key");
define("TWITTER_CONSUMER_SECRET", "consumer-secret");
$oauth = new OAuth(TWITTER_CONSUMER_KEY, TWITTER_CONSUMER_SECRET);
$oauth->setToken('valid-token', 'valid-key');
var_dump($oauth->fetch('https://api.twitter.com/account/verify_credentials.json'));

Whenever I load the page, instead of producing output in my browser, my browser attempts to download a blank file with the same name as the PHP script. Anyone have any ideas?

  • 写回答

1条回答 默认 最新

  • dqz86173 2015-05-21 11:41
    关注

    The general reason for WSOD (White Screen Of Death) when developing with PHP is that you are developing with error messages turned off. Configure your development server to show all error messages (or look in the error log for your server).

    评论

报告相同问题?

悬赏问题

  • ¥15 微信会员卡等级和折扣规则
  • ¥15 微信公众平台自制会员卡可以通过收款码收款码收款进行自动积分吗
  • ¥15 随身WiFi网络灯亮但是没有网络,如何解决?
  • ¥15 gdf格式的脑电数据如何处理matlab
  • ¥20 重新写的代码替换了之后运行hbuliderx就这样了
  • ¥100 监控抖音用户作品更新可以微信公众号提醒
  • ¥15 UE5 如何可以不渲染HDRIBackdrop背景
  • ¥70 2048小游戏毕设项目
  • ¥20 mysql架构,按照姓名分表
  • ¥15 MATLAB实现区间[a,b]上的Gauss-Legendre积分