Backup Your Database into XML
Posted on August 24th, 2009 by George PalmerI can’t stress enough the importance of keeping regular backups of your data. For many a website it doesn’t get more essential than backing up the database. Imagine loosing your entire database, the consequences could be disastrous.
Here’s a helpful snippet of PHP that outputs your database as XML.
<?php
header("Content-type: text/xml"); //We’re going to display the XML [...]
Implementing Singleton Base Class
Posted on June 10th, 2009 by George PalmerWith the very exciting PHP 5.3 nearing release, i thought i’d write about one of the very useful functions making its way in to this version. The new get_called_class() function on its doesn’t really do a lot, but this simple little function plugs one of the many gaping holes in PHPs object model.
Just one of [...]
