Browsing the category
PHP

PHP variable variables

April 7th, 2009 | 4 Comments

Over the coming weeks I’m going to be writing some posts on object orientated programming in PHP5, but to get us started there are a few techniques that we need to know, so today I’m going to be looking at …
Continue reading

PHP variable  variables

Compress your HTML code using PHP

April 2nd, 2009 | 10 Comments

When we write code we love to format it nicely adding tabs, line breaks and indentations, but the end user isn’t interested in how lovely the source code is, they just want the page content, so this script strips out …
Continue reading

Compress your HTML code using PHP

Introduction to PHP while loops

March 24th, 2009 | One Comment

This is just a quick introduction for beginners getting started with PHP and using while loops. You will quickly find that while loops are used regularly to cycle through specific data. So here’s a little code snippet of a simple …
Continue reading

Introduction to PHP while loops

Increase a PHP scripts execution time limit

March 23rd, 2009 | 5 Comments

I’m working on a project right now that uses a PHP crontab to run a heavy script, and the problem I faced was the server kept timing out because by default PHP has a time limit for script execution. There’s …
Continue reading

Increase a PHP scripts execution time limit

Display your Feedburner stats

March 20th, 2009 | 5 Comments

I’ve been away for the last week. My wife and I bought a flat in North London and finally moved in on March 16th. So I’m currently without the internet and won’t have it until the end of March which …
Continue reading

Display your Feedburner stats

Ipod and Iphone PHP detection

March 13th, 2009 | 2 Comments

This is a useful script to re-direct Iphone and Ipod users to a specific page. You could use this if your getting a lot of mobile traffic and your current site isn’t optimised for it. Or for branching out and …
Continue reading

Ipod and Iphone PHP detection

PHP CURL & Tiny URL

March 12th, 2009 | 8 Comments

Here’s how to use PHP CURL and the TinyURL api to generate tiny urls on the fly. This is a similar tutorial to the one I wrote a while back on using the Twitter API I’ve set the variable $maketiny …
Continue reading

PHP CURL & Tiny URL

PHP form validation

March 6th, 2009 | 7 Comments

When building a simple form, validation is usually neglected leaving us open to malicious attacks or genuine user error. filter_var is a built in function to PHP 5 that allows you to strip out any unwanted characters and also makes …
Continue reading

PHP form validation

Using PHP includes

March 5th, 2009 | 4 Comments

PHP is a powerful language that has replaced HTML frames and JavaScript includes in performing the task of including code from one page onto another. Generally PHP includes are used for database connection scripts, functions or classes, to be included …
Continue reading

Using PHP includes

Mod rewrite in 10 minutes

March 2nd, 2009 | 9 Comments

Mod rewrite is the best tool to rewrite those long and complicated urls. So what do you need to use mod_rewrite? The only thing you need to get started is make sure that the mod_rewrite module is installed in your …
Continue reading

Mod rewrite in 10 minutes

Caching Dynamic PHP pages easily

February 17th, 2009 | 44 Comments

I’ve been looking for a solution to cache heavy pages and just serve a static html version for a little while now, and I’ve found a solution in output buffering. Things to think about It’s not a good idea to …
Continue reading

Caching Dynamic PHP pages easily

IE Ajax Caching Issue

February 11th, 2009 | 4 Comments

Internet explorer seems to feel the need to cache everything, which can turn a simple ajax request into an IE nightmare. Add this to the top of your php script, and all your IE Ajax caching problems will be solved! …
Continue reading

IE Ajax Caching Issue

PHP cookies Quick

February 4th, 2009 | No Comment

Cookies are mainly used to authenticate a users session, they are small packets of data that are stored in the web browser that allow a website to match specific user information to that in the database, thus authenticating the user. …
Continue reading

PHP cookies Quick

Using the Twitter Search API

January 30th, 2009 | 70 Comments

Twitters new search feature is great for finding interesting people and topics to follow. So i wrote a script to get search results from twitter and display them on your site. This could be integrated into an existing application or …
Continue reading

Using the Twitter Search API

Using PHP and CSS to make a simple graph

January 28th, 2009 | 19 Comments

Here’s an easy way to display a simple percentage graph using PHP to work out the percentages and do the maths and CSS to display the data on our page. Here’s the demo. First you need to copy the CSS …
Continue reading

Using PHP and CSS to make a simple graph

Using the Twitter API

January 22nd, 2009 | 77 Comments

TWITTER HAS CHANGED ITS API METHOD THIS TUTORIAL WILL NO LONGER WORK. Here’s a simple introduction on using the Twitter API. The API offers many different ways to connect to your details including xml, json, atom, and rss. Im going …
Continue reading

Using the Twitter API

PHP keep your copyright date updated

January 17th, 2009 | 5 Comments

There’s nothing worse than visiting a website with an out of date copyright notice, and there’s a simple way to make sure your always up to date. Just add the line below to display the current year. <? echo date("Y"); …
Continue reading

PHP keep your copyright date updated

PHP regular expression Twitter links

January 16th, 2009 | 10 Comments

Here’s a quick piece of code to highlight replies to users in twitter for example @ashleyford this script uses regular expression to find and replace a based on two things. Firstly it checks for a space before the @ symbol …
Continue reading

PHP regular expression Twitter links
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.