OpenSearch.xml

OpenSearch.xml I wrote a post on OpenSearch.xml, a way of making your websites search functionality available to people via the quick search box in their browser. It’s available here: http://martindownton.wordpress.com/2011/01/15/opensearch-xml/ #postaweek2011 2/52

Read this Post...

How To put your Twitter Posts on your Website

How To put your Twitter Posts on your Website function getTwitterPosts($username,$exclude){ $curl_conn = curl_init(); $user_followers = “http://twitter.com/statuses/user_timeline.xml?id=”.$username; curl_setopt($curl_conn, CURLOPT_URL, $user_followers); curl_setopt($curl_conn, CURLOPT_GET, 1); curl_setopt($curl_conn, CURLOPT_HTTPAUTH, CURLAUTH_BASIC); curl_setopt($curl_conn, CURLOPT_USERPWD, ‘username:password’); curl_setopt($curl_conn, CURLOPT_SSL_VERIFYPEER, false); curl_setopt($curl_conn, CURLOPT_RETURNTRANSFER, 1); $output = curl_exec($curl_conn); curl_close($curl_conn); $xml = new SimpleXMLElement($output); //!!!!! Formatting !!!!!// foreach($xml as $user){ if($exclude != “” && strstr($user->text,$exclude)){ //echo…

Read this Post...