Twitter使用户状态无法在Web主机上运行

<?php
require 'twitteroauth/tmhOAuth.php';
require 'twitteroauth/tmhUtilities.php';
$tmhOAuth = new tmhOAuth(array(
  'consumer_key'    => 'CORRECT_KEY',
  'consumer_secret' => 'zCORRECT_KEY',
  'user_token'      => '1CORRECT_KEY',
  'user_secret'     => 'CORRECT_KEY',
));
  $code = $tmhOAuth->request('GET', $tmhOAuth->url('1.1/statuses/user_timeline'), array(
  'screen_name' => 'MYSCREENNAME'));
$response = $tmhOAuth->response['response'];

print_r($response);

    $data = json_decode($response);

    foreach($data as $item){
        echo $item->text.'<br>';
    }

This code works perfectly well on my locahost. But I'm not ab to understand, why isn't it working on my test web hosting server(freehostia - Free web hosting plan). I'm not getting any output even in the print_r stack.The output on server is as follows: enter image description here

enter image description here