Browsing the category
PHP

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

Using Google’s Weather API

October 25th, 2011 | 17 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

Country drop down list with php function

August 18th, 2011 | 9 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 | 10 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

Creating Automatic MySQL Database backups

June 8th, 2011 | 8 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 | 3 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

Build a MySpaceID Application

August 10th, 2010 | 4 Comments

MySpaceID allows MySpace Users to easily come into your site and get going by bringing their identity with them. By allowing Users to link their MySpace account with your site, a Developer can enable social functionality. This guide is designed …
Continue reading

Build a MySpaceID Application

Using PHP Sessions

August 3rd, 2010 | 3 Comments

When you get to a stage when you need to pass user data from one page to another you have the option to do this without the user knowing by using PHP Session variables. Sessions are basically server-side cookies which …
Continue reading

Using PHP Sessions

MySpace Open Search API

July 4th, 2010 | No Comment

The MySpace Search API allows you to search MySpace for user, videos, images, and music. With an individual feed for each search item. It is designed to function like a search on the MySpace website and to have a response …
Continue reading

MySpace Open Search API

Building an animated 3D poll

June 10th, 2010 | 6 Comments

Regular readers of Papermashup will have seen the post that I wrote last week on Easy Poll, the personal project that I launched a few weeks back that allows you to create a simple 2 answer poll that you can …
Continue reading

Building an animated 3D poll

easypoll a side project

May 26th, 2010 | 11 Comments

I was sat in the sun at the weekend and sporadically decided to do a little project like wedeliver you can read about the adventure I had building the 24hr project here. This project on the other hand probably took …
Continue reading

easypoll a side project

20 Complete scripts to download

April 7th, 2010 | 27 Comments

I’ve put together a nice little collection of scripts over the past year or so, and have decided as it’s approaching summer in the UK (sorry winter in Australia!) to do a download bundle of 20 assorted scripts where you …
Continue reading

20 Complete scripts to download

Useful .htaccess techniques

January 27th, 2010 | 10 Comments

I wrote a post mid last year about protecting your site images from being hotlinked as I found a site that had word for word scrapped one of my blog posts, you can see the post here, and I really …
Continue reading

Useful .htaccess techniques

How PHP helped me solve the Rubik’s cube

January 24th, 2010 | 4 Comments

I was set a challenge last week to complete a Rubik’s cube after tinkering with one by a colleagues desk and managing to get a complete line of matching colours with little effort. In the past i’ve never fully understood …
Continue reading

How PHP helped me solve the Rubik’s cube

Get started with CodeIgniter

January 20th, 2010 | 7 Comments

I’ve never really got the hang of PHP frameworks and have tended to use my own custom built CMS but even with this I still find myself writing the same code over and over again. In the past I’ve dabbled …
Continue reading

Get started with CodeIgniter

Build a JSON and PHP product gallery

January 7th, 2010 | 18 Comments

As the title describes we’re going to look at making cross domain ajax requests using JSONP I’m also going to show you how to get data from a MySQL database and encode it into a JSON string which can be …
Continue reading

Build a JSON and PHP product gallery

Easy PHP Pagination

December 17th, 2009 | 69 Comments

I’ve had a few pagination scripts over the years but I thought i’d share the one that i’m currently using as it’s a useful script to have in your toolbox. As a developer you’ll soon find a need to paginate …
Continue reading

Easy PHP Pagination

Win a copy of ‘Easy PHP Websites with the Zend Framework’ Christmas giveaway

December 7th, 2009 | 3 Comments

“Easy PHP Websites with the Zend Framework” shows you how to use the powerful Zend Framework to build websites with amazing speed and efficiency. Embracing a teaching strategy of learning by doing, showing you how to build website features you’ll …
Continue reading

Win a copy of ‘Easy PHP Websites with the Zend Framework’ Christmas giveaway
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.