Tutorials Archive
18 May 2013
Simple Member Only Page
Here's a quick way to secure a page so only logged in users can access it otherwise the user is shown a login page.
15 May 2013
Sending HTML emails & attachments using PHP & Swiftmailer
Sending email with raw PHP is very easy to do, but sending HTML email is a little more involved bring attachments into the equasion and it can get very complex. Thankfully there are easy ways of sending
10 Apr 2013
Adding multiple times together in an array with PHP
Adding times together can be complex when taking seconds, minutes and hours into account of multiple time calculations add an array into the mix its even more complicated! This small class below enables multiple times to be
6 Apr 2013
Splitting a telephone number in php with substr
I recently had a collection of numbers in the format of area code then the telephone number with no spaces such as 01482123456 I needed a space after the area code so it would read 01482 123456
19 Mar 2013
How to upload videos to YouTube with PHP
Using the YouTube API its possible to upload videos to your own YouTube account using their API, this tutorial explains the steps necessary to accomplish this.
18 Mar 2013
Dynamically binding select menus with PHP & jQuery
I've recently had the need to show different select menus depending on what was selected in the first select menu, this guide will explain how to achieve this quickly.
27 Feb 2013
Autocomplete with PHP, MySQL and Jquery UI
A clean guide on creating an autocomplete input using jQuery UI & PHP
22 Jan 2013
getting the week commencing date and week number using PHP
Using php’s date function you can get all sorts of date combinations including finding the week commencing date for any date. The following function takes a date and returns the previous Monday’s date. [crayon-519a338d85105/] Using this function
21 Jan 2013
Generate a PDF from a web page
Easily convert a web page into a PDF with MPDF, this library makes it possible to take a webpage and turn it into a PDF viewable on the site or offer it as a download. A handy
20 Jan 2013
Pagination with a PHP class
I’ve recently wrote a pagination class for php, I used to do this in a procedural way by using functions, it’s always worked fine, but its not as reusable as a class is. I’ve released this class
2 Jan 2013
Connecting to your MySQL database with PDO (PHP Data Object)
It's been coming for some time but mysql_ has been officially depreciated and will be removed completely from future versions of PHP. Instead you can use either Mysqli or PDO personally I prefer PDO it also seems