Archive for the Technology Category

URL into link using PHP ereg_replace.

Posted on July 8, 2011
By

This is probably not the most optimal solution to complete this task but it’s the one that has worked for me for a number of years. If you [...]


Continue Reading

A PHP function to work out someone’s age.

Posted on July 7, 2011
By

This is a simple function to generate a member’s age from their date of birth.


Continue Reading

How to convert an array into JSON in PHP.

Posted on July 6, 2011
By

On one of my websites I had a need to pass JSON objects from PHP to Java Script. One of the best ways is by the use of JSON.


Continue Reading

How to convert a PHP string to an integer.

Posted on July 5, 2011
By

Today I was working with some of my code and I needed to check the value of a variable was an ‘int’ (or integer) before I could process [...]


Continue Reading

How to set a cookie in PHP.

Posted on July 4, 2011
By

PHP has a number of functions that deal with cookies but for the purpose of this example I’ll be using setcookie() to send a cookie to you [...]


Continue Reading

How to create a function in PHP?

Posted on July 3, 2011
By

Knowing how to make simple functions is a good skill to have. They are easy to create and can make life a lot easier when creating large ap [...]


Continue Reading

How to create a simple PHP class.

Posted on July 2, 2011
By

If you’re designing a large application then chances is you’ll want to start out by creating class that will run a number of back end fu [...]


Continue Reading

Create one config for ‘local’ and ‘live’ code.

Posted on July 1, 2011
By

This is a quick tip that I’ve been using for many years. My problem when I first starting coding basic PHP was the need to run a local de [...]


Continue Reading

Save power by turning it of at the wall.

Posted on June 10, 2011
By

This morning Nick (a long time mate of mine) came around excited he’d just finished his exam that qualified him as a sparkie (electrician) [...]


Continue Reading

Will Christopher Rice make it on YouTube?

Posted on June 4, 2011
By

Today I was surfing though YouTube and came across Christopher Rice who is a 21 year old singer song writer based in Litchfield Park, USA.


Continue Reading
Page 1 of 41234