Articles by Callum Hopkins

The MVC Pattern and PHP, Part 2

The MVC Pattern and PHP

The MVC pattern is built on the basis of keeping the presentation of data separate from the methods that interact with the data, and has been adapted and is widely used by web developers due to its emphasis on separation of concerns. In second part of this two-part series on MVC, you’ll see some of the choices one must face when trying to create a true MVC application on the web.

This entry is part of the series The MVC Pattern and PHP

The MVC Pattern and PHP, Part 1

The MVC Pattern and PHP

This two-part series discusses the Model-View-Control (MVC) pattern, originally formulated in the late 1970s. The architecture pattern is built on the basis of keeping the presentation of data separate from the methods that interact with the data, and has been adapted and is widely used by web developers due to its emphasis on separation of concerns. In this part, learn the basic principles of MVC and see an example of MVC in PHP.

This entry is part of the series The MVC Pattern and PHP

PHP Traits: Good or Bad?

PHP Traits: Good or Bad?

Traits have been generally accepted by the PHP development community, mainly because it’s a feature that exists in other programming languages like Java, C++, and Python. The benefits of have been widely touted, with developers giving their own two cents on how traits can serve as a replacement for OOP inheritance. But are traits a feature which will help raise the level of PHP development, or are they just a fad?

A Tour of PHP.INI

A Tour of PHP.INI

Anyone who has a server using PHP has undoubtedly heard of the php.ini file – it’s the configuration file used to control and customize PHP’s run-time behavior. In this article you’ll learn about some of the more important settings in it you might want to tweak.

PHP Sessions

PHP Sessions

A session is the logical link between page requests made by the same user during his visit. In this article, Callum gives you the low down on using sessions in PHP – how to create them, how to destroy them, and how to make sure they remain secure.

© 1998-2012 SitePoint Pty. Ltd. All Rights Reserved