Web Programming

This section is all about web development, helping programmers to develop the best sites possible.

The key elements of successful web development:

Performance - Interface - Maintainability

Switching a website to SSL

Web Hosting

It was once accepted that only websites handling financial data (such as customer credit card details) would need to implement security and ...

Autocomplete in jQuery

This is my solution for an as-you-type auto-suggest behaviour in an HTML form input, using jQuery. Now, jQuery plugins for doing text input ...

Mashape is an API marketplace!

Is this the API utopia for web developers and data services? Mashape claims to be the one-stop-shop for developers to access thousands of ...

Automated Chromakey in PHP

Web Hosting

This is an experiment in removing a photograph's background automatically, as long as the background is reasonably uniform. To create such ...

Efficient, minimal MySQL backup

Web Hosting

When someone asks you about what you do to backup your website's database, you'll probably have one of these responses: "I don't think ...

Live Script Run Times for Swinny.net

Web Hosting

Here is a summary of the time it takes the Swinny.net server to run a PHP script to deliver a web page, over the last few weeks. The site was ...

Tracking online campaigns with UTM variables

In homage to its previous existence as Urchin Stats, Google Analytics supports URL tracking options using the prefix utm_, which stands for ...

Fixed position elements on mobile browsers

Fixed positioning of HTML elements on a webpage doesn't always work on mobile devices. Here's a piece of meta code that is supposed to 'fix ...

Auto-save browser forms with localstorage

We all know how annoying it is to be half-way through filling in a web form, only to accidentally close the window or hit the back button. ...

UK PHP Conference 2012: a question of scale

I was fortunate enough to attend the PHP UK Conference 2012, on Friday 24 February. The theme of the conference was about how well PHP scales ...

mod_pagespeed breaks things

Google is respected in the web development community for writing simple, usable code and then making it available for re-use by everyone. ...

Cloudflare for Better Web Performance?

Web Hosting

There is a company that offers a firewall service fir your web hosting, and it does this using the so-called 'cloud'. Furthermore, its starter ...

Capturing selected text in Javascript

Here's how to immediately capture the text on your web page that a visitor has highlighted with their mouse. Select some text on this page ...

Make Your Headlines Shine

Here we learn how to create a text shadow affect, using only a bit of CSS. div.box{ background-color:#000000; } h4.glow { padding ...

Google Web Fonts

Google Web Fonts lets you browse all the fonts available via the Google Web Fonts API. All fonts in the directory are available for use on ...