News & Blog

Overcome min-width and max-width CSS on Table Not Working in IE7

February 28th, 2012 - Posted by Steve Marks to (X)HTML / CSS, Web Development.
Whilst trying to make a screen look better across all resolutions recently, I came across a problem with IE7 when making the page cross-browser compatible. I was trying to add the CSS attribute ‘max-width’ on a table so that it would stop expanding across the entire screen on l...

Replacing Line Breaks With <br /> Tags Using JavaScript

February 22nd, 2012 - Posted by Steve Marks to Javascript / jQuery, Web Development.
A scenario arose today where I needed to take the content within a textarea and then output it the screen as HTML. In doing this I knew I would have to take the line breaks in the textarea content (\n) and swap them out for <br /> HTML tags. Languages like PHP come with inbuilt [...]...

PHP Function to Connect via FTP with Retry Capability

February 21st, 2012 - Posted by Steve Marks to PHP, Web Development.
Let’s face it… If something can go wrong, it will go wrong. This is no exception for FTP connections either. Maybe the remote server is not accessible, the network is down, or the connection times out. PHP comes with a set of useful functions to deal with common FTP operations....

Bring Google Map Markers to Front on Hover

February 21st, 2012 - Posted by Steve Marks to Javascript / jQuery, Web Development.
When placing markers onto a map using the Google Maps V3 API they will be placed from front-to-back based on their lat/lng. This is normally fine but can cause a problem when there are lots of overlapping markers congregated together, or when the user is viewing the map at a lower zoom lev...

IIS Able To Connect Via FTP But Can’t Upload Files

February 20th, 2012 - Posted by Steve Marks to Server Management, Web Development.
Over the past couple of days I’ve been setting up a new box running Windows Server 2008 r2. One of the main requirements for it was that it should be able to accept file uploads via FTP. This wasn’t too much of a problem and seemed to be relatively easy… Install the IIS r...

EPC (Energy Performance Certificates) Graph Individual Parts

February 17th, 2012 - Posted by Steve Marks to Web Development.
You’ll probably be familiar with EPC (Energy Performance Certificates) graphs if you work in the property or energy industry. In essence they provide valuable information as to the current and potential energy efficiency of a home. In the UK all properties bought, sold or rented requ...

Stop WordPress Closing Code Blocks When it Encounters a Blank Line

February 9th, 2012 - Posted by Steve Marks to Web Development.
WordPress allows you to highlight blocks of code for readability when writing a post or typing a comment. This can easily be acheived by adding text between <code></code> tags at which point it will put it in a pretty little box and differentiate it from the rest of the content...

How to Fix IE8 Error “Unable to download X.php from yoursite.com”

February 9th, 2012 - Posted by Steve Marks to PHP, Web Development.
Rarely do I hear the words “Internet Explorer” and “Error” mentioned in the same sentence. Alright… maybe that’s a bit of a lie. Unfortunately however, few us can control what browsers our users are using so we have to try and cater for all instances. Th...

Resolve “X is not a verified user” When Adding Developer to Facebook App Roles

February 8th, 2012 - Posted by Steve Marks to Web Development.
Whilst recently building my first Facebook app, one of the things I wanted to do was share ownership with another developer so we could both work on it and share other apps in the future. When trying to add this other user I kept getting an error returned claiming that they were not a veri...