This blog displays statistics on the right-sidebar (bottom) like - There are currently #### posts and #### comments in this weblog. The data is obviously dynamic.
I often come across this question: Where is my php.ini located? Here is a simple solution.
SimpleXML is simple to use as its name suggests. However it is a pain when you need to check the value of an element which may or may not exist.
In short using it on XML schema with optional elements is a royal pain. As SimpleXML only creates objects for which data exists, you will have to write ugly code everytime to check for existence of an object before you access its value.
You cannot solve it by simply writing a convenience method. Lets understand the problem and then we will solve it.
SimpleXML is PHP 5.x way to handle XML. It is simpler than DOMXML (which incidentally is very poorly documented in manual or elsewhere) which is available on PHP 4.x and much simpler than SAX solutions. However it doesn't work with certain installations of PHP 5.x. Let's see how we can solve it.
Copy-Protection recently came to limelight as Sony used DRM technology to copy-protect its CD's which makes them vulnerable to viruses and malware.
This website allows you to search for music CD in Amazon database which do not have any kind of copy-protection enabled. This may come in handy if you want to verify if your favorite music cdc's are copy-protected or you want to avoid copy-protected cd's altogether.
Additionally if you want to search for only copy protected music CD's to tabulate then you can use this site. Personally I don't see much practical use for this one except for fun.
Note: This may result in blank pages with no content as I am forced to filter after fetching the results. Ideally I should have filtered the results through appropriate query but Amazon API doesn't currently allow me to do so. I can filter out empty pages which hasn't been done in this iteration. If enough people are interested I can always add it. This is mainly of concern when searching for copy protected cd's only.
Technical Note: I used Amazon Web Services API to create them. This is possible because Amazon clearly and consistenly marks copy-protected CD's in its record.