[ create a new paste ] login | about

Link: http://codepad.org/IP6gSBvZ    [ raw code | output | fork ]

dorimedia - PHP, pasted on May 29:
1
2
3
4
5
6
7
8
9
10
<?
$url = "http://api.tweetmeme.com/url_info?url=http://dori.co.nz/";

$xml = file_get_contents($url);
$xml = simplexml_load_string($xml);

$shares =  $xml->result->story->url_count;

echo $shares; 
?>


Output:
1
2

Warning: file_get_contents(http://api.tweetmeme.com/url_info?url=http://dori.co.nz/): failed to open stream: No such file or directory on line 4


Create a new paste based on this one


Comments: