6 Useful PHP code snippets

1 Star2 Stars3 Stars4 Stars5 Stars
8
Fb Shares
6
Fb Likes
18
G+
54
Tweets
8
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

1 Star2 Stars3 Stars4 Stars5 Stars
6
Fb Shares
8
Fb Likes
9
G+
40
Tweets
12
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

1 Star2 Stars3 Stars4 Stars5 Stars
3
Fb Shares
4
Fb Likes
4
G+
24
Tweets
6
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

1 Star2 Stars3 Stars4 Stars5 Stars
1
Fb Shares
2
Fb Likes
6
G+
25
Tweets
3
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

1 Star2 Stars3 Stars4 Stars5 Stars
31
Fb Shares
59
Fb Likes
26
G+
83
Tweets
22
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

1 Star2 Stars3 Stars4 Stars5 Stars
3
Fb Shares
11
Fb Likes
12
G+
39
Tweets
28
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

1 Star2 Stars3 Stars4 Stars5 Stars
6
Fb Shares
23
Fb Likes
9
G+
40
Tweets
156
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




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 contact. If your question is related to a free script download, please use the comments on the article page as community members are more likely to respond quicker than I can personally.

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 please get in touch via the contact link below for 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.