Setting up fire to the Posts

Just kidding, nothing harsh. Yesterday Lonely Coder subscribed at feedburner to burn the contents of Lonely Coder, thinking it would improve traffic to the blog while making the posts available in most of the rss readers and the so called popular search engines.

Guys when you wanna spice up your blog and publicise your contents, there is one place I would suggest you to visit. That’s,

feedburner.com

So give that edge to your site as well with FeedBurner. Because according to FeedBurner, You build your content plus add some fire by burning at feedburner gives a Boost up in your blog’s traffic popularity and etc.

Feedburner Equation

You can checkout my stuff burned on feedburner via,
feeds.feedburner.com/LonelyCoder

Linux Magazine out of the Blocks

The first ever linux magazine in the crazy island of Sri Lanka makes it’s way. The magazine only offers an electronic edition of it. We will be very happy to see a hard copy in the near future as well. Because I don’t enjoy reading PDFs at all for that matter.

 Boom !!! Big mistake I forgot to enterprise the name of it, it’s Babytux Digest. Babytux Team comprises of many Geeks in the known world of Linux in Sri Lanka. To mension few of them,

Arunan Skanthan arunan@babytux.org
Buddhika Siddhisena bud@babytux.org
Tyrell Perera tyrell@babytux.org
Suchetha Wijenayake
Hasmin Abdul Cader
Karthiga Ratnam

And the Magazine was launched at a charming ceremony held at Commens Coffee shop on Wednesday the 5th July. You can download the magazine at it’s official site digest.babytux.org

The first issue itself introduces a brand new browser software called Flock, an intreging article on Kaffeine, a nice tutorial on InkScape and in tech news: the launch of Ubuntu 6.06 LTS (dapper drake) in Sri Lanka

 I downloaded the first Issue and got the permission from one of our senior lectures at IIT to make it available at the IIT Library. So guys at IIT can look forward to it at the library.

If you are really intersted with babytux and wanna hear more about it you can always subscribe to it’s group mail at,
groups.google.com/group/babytuxdigest

Reading xml with PHP

Two days back I was working on reading xml using php. And let me tell you it was really cool with php. Hence thought of sharing with you.

the source xml programs.xml is fallows,

<?xml version=”1.0″ ?>
<programs>

<program name=”cart”>
<price>250</price>
</program>

<program name=”survey”>
<price>500</price>
</program>

</programs>

the php script to populate data from the xml file (programs.xml),

<?php

$php_programs=simplexml_load_file(‘programs.xml’);

foreach($php_programs->program as $program_key => $program_val)
{

echo”the root element
is named <b>$program_key</b><br/>”;

foreach($program_val->children() as $child_of_program_key=>
$child_of_program_val)

{

if($child_of_program_key == “price”)
{

foreach($program_val->attributes() as $att=>$val)
{
foreach($program_val->price as $the_price)
{

echo “This <b>$program_key</b>
element has an ettribute named <b>$att</b> and is named
<b>$val</b>.<br/>”;

echo “This <b>$program_key</b>
element has a child element named <b>$child_of_program_key</b>
and the value is : <b>$the_price</b>.<br/><br/>”;

}
}
}
}

}
?>

And the output looks as follows,

the root element is named program
This program element has an ettribute named name and is named cart.
This program element has a child element named price and the value is : 250.

the root element is named program
This program element has an ettribute named name and is named survey.
This program element has a child element named price and the value is : 500.