/ Published in: PHP
Expand |
Embed | Plain Text
Copy this code and paste it in your HTML
<?php $url='http://twitter.com/statuses/user_timeline/16387631.json'; //rss link for the twitter timeline /* gets the data from a URL */ function get_data($url) { $timeout = 5; return $data; } ?>
URL: http://www.digimantra.com/technology/php/get-data-from-a-url-using-curl-php/