Browsing the category
Tutorials

6 Useful PHP code snippets

February 6th, 2012 | 4 Comments

Here’s a selection of really useful PHP code snippets that I find using on a weekly basis. You could use these as is or expand them as part of other applications or add them to a php class. Adjust server …
Continue reading

6 Useful PHP code snippets

Create an error page to handle all errors with PHP

January 31st, 2012 | 6 Comments

Here’s a very simple solution to handling a variety of HTTP errors like 404, 500.. etc in one php file. All we need to do is create an array of error codes and match against them by picking up the …
Continue reading

Create an error page to handle all errors with PHP

PHP check if your website is up

January 30th, 2012 | 4 Comments

Here’s a basic but useful snippet to either check that a website is online or domain exist. It’s a very simple function that uses CURL to check the response from a given URL. if a response is received we can …
Continue reading

PHP check if your website is up

Animate through a set of list items with jQuery

January 27th, 2012 | 2 Comments

Here’s an interesting code snippet I’ve found handy in past projects. Great for highlighting specific information within an application or web page. To start with lets have a brief explanation as to what we’re going to be doing. We have …
Continue reading

Animate through a set of list items with jQuery

jQuery Fancy Switch

November 24th, 2011 | 16 Comments

I wrote a post a while back on coding an iPhone style switch using jQuery. I’ve now put together a simple tutorial demonstrating how simple it is to build a switch that triggers two radio buttons in a field set. …
Continue reading

jQuery Fancy Switch

Using Google’s Weather API

October 25th, 2011 | 21 Comments

I thought it would be a nice little project to write a tutorial on how to build a basic but powerful weather application for either mobile devices or the desktop. The application takes a set of Google weather API feeds …
Continue reading

Using Google’s Weather API

jQuery Show / Hide Plugin

September 28th, 2011 | 113 Comments

Due to popular demand here’s a re-written version of the tutorial I wrote over a year ago on how to show and hide content using jQuery. After I first published the post I’ve had a lot of requests as to …
Continue reading

jQuery Show / Hide Plugin

Country drop down list with php function

August 18th, 2011 | 10 Comments

I had a project recently that required the user to select their country from a drop down list and store the data in a database. It was such a long process setting up the PHP switch statement that I thought …
Continue reading

Country drop down list with php function

Display breadcrumbs on your site using PHP

August 17th, 2011 | 11 Comments

When you have a fully dynamic site it’s useful to show the user where they are by breaking down the URL structure so they can navigate backwards through the site. For example this url: http://papermashup.com/categories/jquery/ shows that ‘jquery’ is part …
Continue reading

Display breadcrumbs on your site using PHP

Create a URL from a string of text with PHP and mod_rewrite

August 16th, 2011 | 4 Comments

Quite often when developing big web apps you may need to use mod_rewrite to generate SEO friendly URLs from a string of text, Very similar to the way Word press generates URLs for blog posts. The Code Below is the …
Continue reading

Create a URL from a string of text with PHP and mod_rewrite

Build a simple animated progress bar with tooltip

August 14th, 2011 | One Comment

Here’s a very basic example of how to code up an animated progress bar with tooltip using the Tipsy tooltip plugin. First I started out in Photoshop and designed the basic progress bar, you can download the PSD file for …
Continue reading

Build a simple animated progress bar with tooltip

Creating Automatic MySQL Database backups

June 8th, 2011 | 9 Comments

Every database needs to be backed up and if you’re currently doing it manually you can stop because there’s a simple solution using PHP. With this script you can either pass a specific table to backup or choose to backup …
Continue reading

Creating Automatic MySQL Database backups

PHP Language Detection

June 1st, 2011 | 4 Comments

I was looking for a simple way to automatically detect a users language using PHP and came across this interesting snippet which does just that. It uses the PHP superglobal ‘HTTP_ACCEPT_LANGUAGE’ which returns something like this for me “en-US,en;q=0.8″. This …
Continue reading

PHP Language Detection

jQuery UI Slider

May 19th, 2011 | 12 Comments

I’ve been hugely inspired recently by the design work of Orman Clark from Premiumpixels.com and his generous selection of top quality PSD downloads. after seeing this beautiful design of a button and slider set I was eager to code up …
Continue reading

jQuery UI Slider

Dynamically updating times using jQuery

March 14th, 2011 | 2 Comments

With the rise of Facebook and Twitter we’re so used to instantly updating data and being able to judge fresh content almost instantly. Facebook for instance automatically updates how long ago someone left a comment on the fly without even …
Continue reading

Dynamically updating times using jQuery

jQuery list filtering

January 24th, 2011 | 13 Comments

Here’s a clever little script that’s certainly useful if you want to give users the functionality to refine search results or filter product results. If you had a list of films with long titles this would be a quick and …
Continue reading

jQuery list filtering

Automatically pull in user Gravatar images

January 20th, 2011 | 2 Comments

I was browsing forrst.com and saw a pretty interesting code snippet from Chris Coyier from CSS-Tricks which is pretty useful for WordPress users and allows the gravatar of a commenter to be dynamically pulled into the comment box as soon …
Continue reading

Automatically pull in user Gravatar images

HTML5 background gradient effect

November 12th, 2010 | 10 Comments

Yesterday I looked at Geo Location through your web browser and today we’re going to be looking at using the HTML5 canvas to manipulate the colours on mouseover of a background element. The demo was originally put together by Remy …
Continue reading

HTML5 background gradient effect

HTML5 Geo location using the Google API

November 11th, 2010 | 21 Comments

HTML5 came on the scene around the beginning of the year, but as we’re seeing more browsers becoming more sophisticated and applications more intelligent how can we use HTML5 to our advantage and what can it do to make life a …
Continue reading

HTML5 Geo location using the Google API

jQuery Face Detection

November 5th, 2010 | 13 Comments

Jay Salvat just posted a brilliant plugin that automatically detects faces in a picture. You can download the code from Git Hub or check out the demo here The plugin is fairly easy to integrate into a social application, all …
Continue reading

jQuery Face Detection
Looking for a registry cleaner to speed up your PC and show a full diagnostics?
Faster surfing with Dish Network High Speed Internet

Never miss an update from Papermashup

Get notified about the latest tutorials and downloads.

Subscribe by Email

Get alerts directly into your inbox after each post and stay updated.
Subscribe
OR

Subscribe by RSS

Add our RSS to your feedreader to get regular updates from us.
Subscribe

Get in contact

Please use the form below to get in touch.

About Me

I'm Ashley Ford, Co-founder and Technical Director at Harkable.com London, UK. Previously I worked at InMobi, Spotify and MySpace. My interests include photography and making short videos I'm also an avid F1 fan. I'm always working on side projects. Here are a few: Easy Poll, We Deliver.



What do you specialise in?

I spend a lot of time coding in PHP and MySQL, as well as front end XHTML and CSS. I also specialise in javascript and the jQuery framework as well as being an avid designer. You can find me on dribbble

Interested in advertising?

If you'd like to advertise on Papermashup.com you can find details here Or use the contact link below for further advertising opportunities.

How do I contact you

You can contact me here. and I'm available for consultation, freelance, programming book reviews.

Get on the mailing list

Join over 3000 people who have subscribed to the Papermashup inbox message, and be the first to find out about tutorial, competitions and giveaways.