This is the website of Andy Carter a PHP and jQuery web developer in the Steel City. Working with CakePHP (and a bit of Textpattern and Drupal too).

Latest Entries

A new version of arc_meta for Textpattern is now available.

Version 1.3 adds support for section and category images for open graph and Twitter cards. The limits on the length of meta titles and descriptions has also been increased, although it is recommended to keep these short to benefit from there use for SEO.

Sometimes when a user requests to download a file from your app you may want to run some pre-download logic. For example, you may want to check that the user is authenticated or perhaps log the download. Since CakePHP 2.3 this can be simply achieved using CakeResponse.

Showing Passwords on Log-In Screens


Luke Wroblewski takes a look at the user experience of password input fields; why and how to show passwords.

Passwords have long been riddled with usability issues. Because of overly complex security requirements (a minimum number of characters, some punctuation, the birthdate of at least one French king) and difficult to use input fields, password entry often results in frustrated customers and lost business.

A little over a year ago I relaunched this site with a new look and an aim of blogging more. I feel I’ve done pretty well at achieving that aim and have posted significantly more content to the blog over the course of 2014. As a result visitor numbers have increased sevenfold.

Featured Entries

A Beginners Guide to Package Manager Bower and Using Gulp to Manage Components

Package managers like Composer for PHP and NPM for Node have become essential tools for simplifying a developer’s life. A package manager is a tool for keeping track of what you’ve installed, as well as installing and upgrading packages. They also check for dependencies and compatibility. Bower is a package manager for the web.

Calculate a Person's Age in PHP (Accounting for Leap Years)

I've seen a lot of code out there for calculating a person's age that makes the mistake of ignore leap years. If you ignore leap years then the age will be out by a day or more on or around the person's birthday which isn't what you want.

Latest Tweets

Follow Me