Problem with printing output using PHP library
Posted
by Jack
on Stack Overflow
See other posts from Stack Overflow
or by Jack
Published on 2010-03-25T06:12:01Z
Indexed on
2010/03/25
6:23 UTC
Read the original article
Hit count: 441
twitterapi
|beginner
I am using the PHP library tools on a we hosting service( with cURL enabled). I have so far tried 2 tools but I cant get the output of my code to print to the screen.
http://github.com/jdp/twitterlibphp - PHP library
Sample code -
<?php
require("twitter.lib.php");
$twitter = new Twitter("xxxx", "xxxxx");
$public_timeline = $twitter->getPublicTimeline();
echo'<pre>';
print_r( $public_timeline );
echo'</pre>';
?>
I don't get any output. What can be the problem? Do I need to install any modules or packages? Please Help
© Stack Overflow or respective owner