Posts for php
Choice is bad; PHP has too many Frameworks/CMSs
One thing I find frustrating with PHP is the number of different frameworks and content management systems available. It seems every company, organization and often individual has a preferred framewor
Grinds my gears; PHP < Version 5
You know what really grinds my gears?
Being forced to use PHP 4. PHP 5 has been out since the 13th of July 2004. That’s getting on 4.5 years, yet I still find hosting solutions that are stuck in th
Languages I've learned in order
This is a list of the languages I've learned over the years in order. Starting with what I first learnt and going by when I started, not when I became 'good.' I'm not that competent with a lot of thes
HTML DOM and easy screen scraping in PHP
One of my favourite features in JavaScript is its ability to interact with the DOM so easily. This is made even easier by various JavaScript libraries and their selector engines largely based on CSS e
PHP __call and __callStatic Magic methods
This is just a quick post to show the use of the magic methods __call and __callStatic. It’s following on in my <a href="http://blog.dougalmatthews.com/tag/magic-methods/">Magic Method series</a>. The
Creating RSS feeds with SimpleXML
I love RSS feeds. One just needs to take a look at my Google Reader to see that;
<p style="text-align: center;"><a href="http://blog.dougalmatthews.com/wp-content/uploads/2008/08/untitled.jpg"><img c
Has Django made me a lazy PHP developer?
After working in Django I keep getting a shock when I need to re-write features and basic functionality. I know Django is a framework and PHP is a language (<a href="http://www.sitepoint.com/blogs/200
PHP 5.3... too late?
PHP 5.3 is around the corner, it’s got a bunch of handy new features. Yet, why am I not excited?
PHP users seem to have a horrible horrible habit of not upgrading quickly (if at all). Looking at re
Python - Some syntactic sugar
I've been playing with Python for a while now and basically I love it. This post is going to be a very quick overview of some of Pythons features that might be new or a bit odd to a developer from a d
PHP __set and __get Magic methods
Object oriented programming principles encourage encapsulation, i.e. containing all the functionality inside a class. Usually this means member variables should be private or protected, one of the com
Aptana Cloud - Hands On
I received beta access today to Aptana cloud, something I'd previously mentioned. Aptana cloud is targeted at rapid development and sounds very impressive.
Lambda Functions - Does your language support it?
What are Lambda functions? Basically lambdas are functions that can be treated as anonymous or as objects. It depends on the language that is being used. They are very useful and at the core of the Functional Programming paradigm.
Analysing PHP Objects and Classes
<p class="MsoNormal"><span lang="EN-GB">Due to the dynamic nature of PHP as a programming language it can be quite difficult to determine what is happening. This is then even harder if you don’t have
Lazy Loading in PHP with __autoload
__autoload is one of the magic methods added to PHP in version 5. It creates a very easy way for you to manage all your different class files. Actually, with __autoload you don’t ...
Design Patterns: Singleton
The singleton design pattern is a way of enforcing only one instance of an object. This is achieved by making 3 fairly simple steps to a class. Firstly ...