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

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 ...

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. ...

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 ...

Facebook Commenting for Websites

Facebook has opened up its commenting system to all websites. What this means is that there is no need for a website owner to develop, run and ...

Media Temple: no more FOLLOW_LOCATION

It's not unusual for web hosts to make changes to their platform, for security reasons or whatever, but this one on Media Temple's (gs) platform ...

Frame-busting

Here's some code you may find useful if your website is stuck in an iframe inside someone else's site: if(top.location != location) { ...

How to Flatten a PHP POST Array

The situation is this: You have a PHP script that takes POST data, and you need to pass that data on to a remote server. How do you do it? ...

Show Bots the Content to Index

There are a few ways to tell bots whereabouts the content is on your web page: Google ad section targeting: What is section targeting and ...

Facebook Bot User-Agent

Here's a user-agent you'll need to add to your list of robots: facebookexternalhit/1.1 (+http://www.facebook.com/externalhit_uatext.php) I ...

Efficiently decode a short url

I am building a reference of short urls, and for each one need to record its final destination url, server software and page title. Curl almost ...

Behind the bit.ly url

If you want to know more about what a bit.ly url refers to, here is a PHP function that may be of use to you. It first checks what the destination ...

Implementing Facebook OpenGraph

Facebook makes its new Graph interface sound so simple, but what about Facebook OpenGraph? This is where third-party web sites specify extra ...


Related Reading

Web Development Survey!
Which web technologies would you like to see the back of, and why?