hello@creativeintent.co.uk       01502 722762
Paul Mayne
'How to preview your new Facebook profile announced at F8 conference' featured image

If you’ve been wondering how to get the new Facebook layout then follow this step by step guide. The new layout will only be viewable by other developers for now, but it gives you a sneak peak into how Facebook will look in the near future.

1. Go to your Facebook homepage and add the Developer app by typing “Developer” into the search bar. Click on the first result.

2. Click on “Create new app.”

3. After typing in your app’s name and namespace (don’t worry about it, no one will ever …

Continue reading ...

Matt Oakley
'The magic of strtotime() in PHP' featured image

The magic of strtotime() in PHP

Posted by Matt on 05/05/2011

After discovering an amazing little trick using strtotime() in PHP yesterday, I thought I’d share it with you all.

The Scenario

Whilst adding some new analytical graphs to the dashboard of our CaffeineCommerce software, I needed to ask Google’s API for the total monthly visits between month X and month Y (e.g. 2010-11-01 and 2011-04-30, the last 6 months). So, essentially I need to generate a timestamp for the last day of last month and for the first day of 6 months ago.

How to begin?

At first, it seemed that mktime() might …

Continue reading ...