10 useful PHP PEAR packages

MDB2 PEAR MDB2 is a merge of the PEAR DB and Metabase php database abstraction layers. It provides a common API for all supported RDBMS. The main difference to most other DB abstraction packages is that MDB2 goes much further to ensure portability. MDB2 provides most of its many features optionally that can be used to … Continue reading 10 useful PHP PEAR packages

10 code snippets for PHP developers

I’ve compiled a small list of some useful code snippets which might help you when writing your PHP scripts… Note: If you are using bluehost coupons guide, you can edit php.ini to reflect the changes below. Email address check Checks for a valid email address using the php-email-address-validationclass. Source and docs: http://code.google.com/p/php-email-address-validation/ include(‘EmailAddressValidator.php’); $validator = new EmailAddressValidator; … Continue reading 10 code snippets for PHP developers

Add RSS feeds to your website

Adding a RSS feed to your website has never been this easy with PHP, especially with MagpieRSS. About MagpieRSS MagpieRSS is an RSS and Atom parser for PHP which supports RSS 0.9, RSS 1.0, the various Userland RSS versions (0.9x and 2.0). Additionally it supports Atom 0.3, and many custom RSS namespaces. Features of MagpieRSS Easy to Use Parses … Continue reading Add RSS feeds to your website

HTML entities within XSL

You want to have in your XSL stylesheet but you’re getting an error, just put these few lines of code at the top, before the tag : <!DOCTYPE xsl:stylesheet [ <!ENTITY nbsp “&#160;”> <!ENTITY AElig “&#198;”> <!ENTITY AMP “&amp;#38;”> <!ENTITY Aacute “&#193;”> <!ENTITY Acirc “&#194;”> <!ENTITY Agrave “&#192;”> <!ENTITY Alpha “&#913;”> <!ENTITY Aring “&#197;”> <!ENTITY … Continue reading HTML entities within XSL