Reorder A Numerically Keyed Array Using Array Splice?

/ PHP / by Paul Robinson / 3 Comments

So today I was given an interesting task by a client. I had the output of a certain function. That function returns an array containing the days of the week (via numeric key, 0 = Sunday, 1 = Monday, etc). The value of each key was an array containing data. Something like this:

Using shorthand array syntax here & […]

Read more

Adding SwiftMailer to a Simple Website Using Silex and Twig

/ PHP / by Paul Robinson / 6 Comments

In our last tutorial we looked at how to make a very simple website using Silex and Twig. If you haven’t yet took a look I encourage you to do so as this tutorial will make a lot more sense if you have already followed the previous one. As always there is a demo available. I have just updated the […]

Read more
Another WordPress Handy Tip

WordPress Tip: Do Not Use Init For Rewrite Rule Flushing

/ Wordpress / by Paul Robinson / 0 comments

Today I have a quick tip I want to share with everyone about rewrite rules in WordPress. WordPress is awesome. It has a nice, fairly easy to use rewrite system. You can use it to add your own rewrite rules and do all sorts of awesome things using a plugin. A lot of new developers also forget they are integral […]

Read more

Using PHP & MySQLi With A MySQL Database Part 3

/ Misc, PHP / by Paul Robinson / 0 comments

This third part of explaining how to use PHP & MySQLi was inspired by ‘abr4xas’ who commented on part 2 of this tutorial. He/she asked how they would go about safely inserting data from the $_POST superglobal into one of their MySQLi queries. So here is how to do exactly that. Prepared Statements One of the best ways to use […]

Read more

Using CSS Transitions to Create Image Overlays

/ CSS / by Paul Robinson / 1 Comment

Today we are going to look at how to replicate the beautiful image overlays, also called caption animations, created by the jQuery plugin Mosaic with just CSS transitions. No JavaScript at all. Using CSS Transitions to Create Image Overlays: Demo Arguably the most important part of a tutorial is the demo. So without any further dilly-dallying here is the demo. […]

Read more

AngularJS and Laravel Shopping List Application – Part 2

/ Javascript, PHP / by Paul Robinson / 47 Comments

As promised here is the second part of building our Shopping List Application with the excellent AngularJS the JavaScript MVW framework. In this final part we are going to look at how to extend our application so that it can receive data (via JSON) from a REST based application to populate our shopping list with items. This is as opposed […]

Read more

AngularJS: Shopping List Application – Part 1

/ Javascript / by Paul Robinson / 10 Comments

I’ve been getting a lot, and I mean a huge amount, of requests for a tutorial on some form of JavaScript framework. I tried Backbone, but honestly? I just couldn’t get to like it. It is brilliant, but not for me. So someone suggested AngularJS instead & it was love at first sight. Super simple and it even feels like […]

Read more

I'll keep your WordPress site up-to-date and working to its best.

Find out more