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?
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).