Trying to connect to the twitter api with php. Using the files from the following github distribution: https://github.com/abraham/twitteroauth. I just get a 500 server error and have tried using error_reporting(E_ALL) but to no avail. Not sure what the rub is, here is my code:
<?php
session_start();
require_once("twitteroauth-master/src/TwitterOAuth.php");
$apikey="not included but definitely correct";
$apisecret="not included but definitely correct";
$accesstoken="not included but definitely correct";
$accesssecret="not included but definitely correct";
$connection = new TwitterOAuth($apikey, $apisecret, $accesstoken, $accesssecret);
print_r($connection);
?>