1. PHP vs MySQL - Which will perform the task better?

    Working on a LAMP stack, I often come across the question “should I do this in PHP or MySQL?”. I was recently working on a project that, in my head, could have gone either way. I learned the hard way that I was wrong. …


  2. PHP Constants - Root Path and Base URL

    Development environments are often different from live environments. Because of this, it is easy to fall into the trap of modifying links and includes before pushing live. However, there is an easier way by defining the BASE_URL and ROOT_PATH constants in your PHP scripts. …


  3. OOP Terminology - This can get confusing

    For beginners learning Object Oriented Programming, it can be pretty difficult to follow. So many terms get used that we often trip over their meaning. …


  4. PHP Interface - How can we create a method without defining it?

    For a beginner, it can be quite confusing when learning OOP to see that an interface can call a method, but you haven’t even begun to define the method! I hope this helps break the knowledge barrier. …


  5. How to modify the default timezone on your PHP server.

    Any developer will tell you that working with timezones can be a real pain in the ass. It is no different with PHP, but it is good to know how to work with timezones. …


  6. Creating a PHP info page to view PHP configuration values

    So you want to see the configuration of php on your server without having to jump into ssh and open the configuration files? …