Need help?

I'm available for remote short term contracting or consultancy work. Please check out my LinkedIn profile for more details on my experience.

Please feel free to use the form below to contact me.



Php

Have you spent countless hours trying to figure out why your session data isn't persisting from page to page? Or maybe you've been trying to call a page using AJAX / XMLHttpRequest, and then set a session; but once navigating to the next page, the session was gone. The big question here is - what causes this?

jon | April 27, 2010 | Comments (0)

Are you looking to find out how to include/require files on the fly using JavaScript? That's what we're going to go through in this article. The same functionality used in PHP to require/include other PHP files can just as easily be done in JS.

Before we can start, we have to download a JS library called RequireJS - this allows us to load files and modules asynchronously using JavaScript.

jon | April 27, 2010 | Comments (0)

Are you looking to search a directory for a specific file, or just display contents of a directory? Then I think this snippet of code will be useful.

jon | April 27, 2010 | Comments (2)

Do you need to format dates using php? Well, it's easy as cake - read on for some example code.

If you are looking for it to spit out the mm/dd/yyyy format, this is how it's done.

jon | April 27, 2010 | Comments (1)

If you're looking for a way to execute a bit of code before it actually runs the module/action, then you're in the right place. The first thing is that it's not actually called a preDispatch, as it is referred to in Zend. Having a Zend background myself, this got me a bit confused, as there was nothing linking the 2, when doing a search in Google.

The 2 main things we'll look at are the preExecute and the filters.

jon | April 27, 2010 | Comments (1)

In this tutorial, I'm going to go through the process of setting up a Symfony project on a shared host (CPanel). I was unfortunately faced with this same problem, but was lucky enough to find the answers (after quite a bit of searching), so I thought an article would be in order. This article will also assume that you already have a database setup, with data in it.

jon | April 27, 2010 | Comments (0)

If you're new to Macs, or always wondered what the best IDEs were for PHP development, then this may be helpful.

I've compiled a list of my favourite IDEs, and added a brief description for each. These are purely my editors of choice, so if you've got a few others in mind that I've missed, please feel free to comment and maybe I can add them to the list.

jon | April 27, 2010 | Comments (4)

The new OAuth protocol has been quick to becoming the standard for accessing secure data via APIs - it's also mandatory on some sites, or soon to become.

I'm about to show you a 3-legged process for obtaining an access token, which will give you access to the persons account that approved your request. With this token, you'll be able to update their status, and pretty much do what they can do, minus altering crucial account details.

jon | April 27, 2010 | Comments (164)

If you're maintaining a blog and want a way to highlight code within your articles (for ease of reading), then this article may interest you.

I can't even begin to say how annoying it is to read a large chunk of code that has no color highlighting - this will improve readability and traffic to your blog (or whatever you decide to use it on).

jon | April 27, 2010 | Comments (2)

The Zend Config component is mainly used to access configuration files, but can also be customized to suit many different situations.

In this article I'll be going through an example of how you can extend Zend_Config and customize it to your liking (or my liking in this case). You'll also need to know (or should know) a little bit about the Zend Framework to understand what I'm talking about, and how to fit it into your projects.

jon | April 27, 2010 | Comments (1)