WebDesires - Web Development Cannock, West Midlands
Basket is empty

WebDesires Knowledge Base

Embedding images in CSS 

Embedding images in CSS

Embedding images into your CSS is one of those things that might sound unfavourable but in fact gives you many benefits. First and foremost it can lower the number of requests your webpage needs to make, every connection to every resource requires a handshake, negotiation and then download. The more you have in one file, […]

Merging Arrays Removing Unique Multi Dimensional Data 

Merging Arrays Removing Unique Multi Dimensional Data

Generally merging arrays in PHP is pretty straightforward given the built in functions on offer for developers. <?php $array1 = array(0 => “data1”, 1 => “data2”, 3 => “data”); $array2 = array(1 => “data”); $result = array_merge($array1, $array2); ?> Given the above array its obvious how simple merging 2 arrays can be. The expected result […]

Blacklisted on APEWS? Junk DNSBL 

Blacklisted on APEWS? Junk DNSBL

Keeping an eye on your servers DNSBL report is very important, a DNSBL is a blacklist of IP addresses that are logged when Spam is detected or when a host suspects spam emails coming from an IP, they are useful for thwarting spammers and they do a really good job. Unfortunately for us legitimate WebMasters, […]

Open .ico Files in Photoshop 

Open .ico Files in Photoshop

I recently needed to look at a few Windows Icon Files (.ico) and wanted to be able to load them into Photoshop in case I wanted to make edits to the icons, and well we use Photoshop for all our editing so it would have been just the most convenient instead of having a completely […]

XLSX To CSV Conversion PHP (Fast & Efficient) 

XLSX To CSV Conversion PHP (Fast & Efficient)

When doing anything these days the very first thing I look for is a resource or library that can do what I need, and for the most part these are better maintained, more thought through and generally a safer bet than hacking / slashing things together yourself. Basically who wants to re-invent the wheel. However […]

Website 18+ Age Restriction on Mobile Networks O2, EE, Vodafone, GiffGaff, BT 

Website 18+ Age Restriction on Mobile Networks O2, EE, Vodafone, GiffGaff, BT

A client of ours has had an issue recently where their website ended up being Age Restricted by all the popular mobile networks, basically anyone who has not unlocked their mobile network for 18+ content and whom tries to visit the clients website gets an age restriction warning asking them to contact their provider and […]

Sort Table By Column using JavaScript – Text Sort & Number Sort 

Sort Table By Column using JavaScript – Text Sort & Number Sort

So recently I wanted to be able to sort a HTML table column using Javascript, I wanted to be able to sort ASC or DESC flipping the order on multiple clicks of the column. The table was going to be pretty big so another important factor was speed, it had to run as fast as […]

htaccess Remove Multiple Slashes in URL 

htaccess Remove Multiple Slashes in URL

Apache is a beast, a big untamed beast that sometimes releases a huge surprise that confuses, perplexes and even scares the living shit out of you, such as when you realise that Apache doesnt care about multiple slashes (empty directories?? WHAT ON EARTH?!?), which I have just coined #slashesgate. So what is this seriously messed up […]

Getting an A+ rating on the Qualys SSL Test on all cPanel Domains 

Getting an A+ rating on the Qualys SSL Test on all cPanel Domains

Security is very on both sides of the table when it comes to websites and servers, for one it’s good for you as the server administrator as you and your clients are less likely to be compromised in any fashion, and of course it is something to boast about. This is also true for the […]

WordPress Contact Form 7 – Add email addresses to all forms 

WordPress Contact Form 7 – Add email addresses to all forms

Sometimes with Contact Form 7 you may have many forms, we have clients with 20+ forms on each of their sites, and sometimes you may with all your forms were sent to various staff members which change over time, the annoyance of Contact Form 7 is that to handle this you have to edit each […]