I use MSN, Skype and GTalk to keep in touch with work colleagues all day everyday. I’ve always wanted to be able to do it on my mobile phone, however you usually have to pay a monthly fee to do this, and you have to run a different client for each protocol.
Now, there is Nimbuzz – a Java application that allows you to chat on all these protocols via your mobile for free!
I’ve been using it for the past couple of days, and have found it to be really good! And if you run Windows, you can download a windows client that syncs your contacts with your mobile phone too! Thoroughly recommended.
I’ve been looking for a simple way to convert XML into an array in PHP, like the Perl library XML::Simple does. The best bet with PHP is SimpleXML, which provides a pretty simple interface for parsing XML in PHP.
Take a simple example XML file:
<list type='randomlist'> <item> <name>Item Number 1</name> <code>ITEM1</code> </item> </list>
To parse this with SimpleXML, do the following:
// If we have the XML in a string we do this: $xml = new SimpleXMLElement($xmlstr); // If we have the XML in a file we do this: $xml = simplexml_load_file($filename); ... // We can now access the XML values and attributes easily $name = $xml->list->item->name; echo $name; // "Item Number 1" // Attributes too (these are NOT documented on the PHP site!) $list_version = $xml->list['type']; echo $list_verson; // "random list"