All posts by Marcus

Simple Twitter RSS Processing

I required a simple feed from Twitter into www.MindOver-matter.co.uk/news.php. There are numerous examples around but a lot of them are very convoluted. Below is an simple code example. The function could of course be modifed to be generic whereby user info etc would be passed in.

<?php

function parse_cache_feed($usernames, $limit) { 
  $feed = "http://twitter.com/statuses/user_timeline/130211322.rss";
  $xml = new SimpleXMLElement(file_get_contents($feed));
  if (count($xml->channel->item) == 0)  {
?>
          <p class="tweet">
              Sorry but failed to connect to Twitter for latest updates, 
              it is probably busy so try again later. 
              Or look <a href="http://www.twitter.com/MindOverMatter8">here</a> 
          </p>
<?php
  } else {
      foreach ($xml->channel->item as $item) {
          ?>
          <div class="calendar">
             <div class="calendar-month">
                  <?php echo date("M",strtotime($item->pubDate)) ?>
             </div>
             <div class="calendar-day">
                  <?php echo date("d",strtotime($item->pubDate)) ?>
             </div>
          </div>
          <p>
            <?php echo str_replace("MindOverMatter8:","",$item->description); ?>
          </p>
<?php 
      }
  }
} 

?>

Using site speed in web search ranking

Google as added yet another criteria to its algorithms to achieve good search ranking; speed of site. This can only be a good step in the right direction forcing designers and developers to ensure that their sites are optimized as much as possible.

The article has a number of references to some good free tools to evaluate the speed of the site.

See  Official Google Webmaster Central Blog: Using site speed in web search ranking.

Mind Over Matter Hypnotherapy in West Yorkshire – unlock your potential

Would you like to live your life with better health, greater happiness and increased confidence and success?  Well you can make those positive changes with hypnosis!  You can live your life the way you’ve always wanted, releasing bad habits, fears, and removing the limitations that are holding you back?

via Stop smoking or lose weight with hypnosis by Mind Over Matter Hypnotherapy in Wakefield, West Yorkshire – unlock your potential.

Another great site by markOnline for all your website design and website development.