Category Archives: Coding

Using Google Maps, Geocoding and PHP to find the distance between UK Postcodes

If you’re looking to make any kind of radius checker, delivery calculator etc, you will need to have some method of calculating this distance. Unfortunately for us in the UK, Royal Mail keep a tight grip on postcode data. As … Continue reading

Posted in Coding | Tagged , , , , | Leave a comment

Vertical Align and Centering Images in Div tags

Just thought I’d share my preferred solution for vertical aligning an image within a Div. You can’t use <p> tags, text align, vertical align or even image align as this messes up the display? I had this problem with thumbnails … Continue reading

Posted in Coding | Tagged , , | Leave a comment

Resubmitting forms upon page refresh or reload in PHP

A common problem with forms is the annoying resubmit when the user reloads or refreshes a page. This can result in duplicate database records if not dealt with properly. There are a number of simple solutions to this problem, I’ll … Continue reading

Posted in Coding | Tagged , , | Leave a comment

Simple PHP Login Systems and PHP Header – Break them with cURL

Most of the simple, free PHP scripts out there for user login systems have several large flaws in them, and I’ll admit that my earliest sites weren’t safe from what I’m going through today. cURL is a valuable tool for … Continue reading

Posted in Coding | Tagged , | Leave a comment

Register_Globals and Session Side Effects in PHP

Wrote a little login script (as part of a larger project) which uses PHP to store sessions with a user’s data in and got the following error. Warning: Unknown: Your script possibly relies on a session side-effect which existed until … Continue reading

Posted in Coding | Tagged , , | Leave a comment