The Blog of Hull based Web Developer David Carr. I blog about web development and Design.
Every project should have regular backups. Writing database tables to a file using PHP while possible is not recommended, it's much better to use MySQL for that.
MySQL has a function called mysqldump that exports a database to a file, this is ran using SSH. For those times when you don't have access to SSH here is a simple way to create a backup using mysqldump by running exec and passing in the command and the login credentials and lastly defining the name of the file to be created.
Closures are really useful, especially for creating plugins when a full blown controller is not needed, today I came across a problem when using a closure within a class and trying to use $this-> which resulted in getting this error Using $this when not in object context.
Here is a simple way to collect the first letter of each word, This can be useful to get say a person initials from their name
This post describes a very simple way to add or sub-tract time to a given time using the date and strtotime functions.
11th Jun 2014 Development by David Carr
Sitepoint released a great post today HTML5 Forms: The Markup it explains the various input tags that can be used in HTML 5. Some of these are very useful such as range, date, datetime, datetime-local, week, color. Unfortinatly most of these have mixed support across browsers IE is lacking the most.
I attended the Hull School of Art and Design Degree Show last night. Very please to say it was a great success, some fantastic pieces of work on display.
Outputting a forms contents to a CSV file is incredibly handy and easy to do, this post will cover the steps involved.
Xbox does not provide an official API for anyone to use. Their are a few sites that provide an API one of which is https://xboxapi.com/v1 xboxapi makes it very easy to pull your Xbox API data.
In this tutorial I'll show you how to display your Xbox Live data and then cache it, this will enable the page to load faster and avoid going over xboxapi's API Limit which is set to 350 requests an hour.
The following is a collection of freely available Bootstrap admin themes, each theme looks great and can be customised easily.