Menu Get a free quote
My blog
Writings on web design-related subjects
   

Blog page 1 of 13


Create a search engine-friendly slug/URL from a string using PHP

Making nice URLs is a given now. Here’s how to make a nice-looking slug from any string. It should work well on any latin-based character sets. I personally like slugs all lowercas…

Read More

Dynamic/automatic robots.txt file with PHP and .htaccess

Worried about accidentally publishing your test site robots.txt to your live site robots.txt and thereby blocking the search engines from your site? It’s an easy mistake to make an…

Read More

How is a website made responsive for mobiles and tablets?

A responsive website is one that “responds” to the platform the visitor is using. Most commonly this is the screen or browser size. For example, if the browser width is less than a…

Read More

Add a click event to html or body on iOS using jQuery

If you’ve ever tried to add a click event to html or body in jQuery, you’ll have no doubt found it doesn’t work on iOS. Click events do not bubble up to the html or body tags in iO…

Read More

Create a GUID with PHP

A GUID is a globally unique identifier; it’s a 128-bit hexadecimal string. There are so many possible GUIDs that you can assign them to any data record and be fairly confident that…

Read More

PHP’s mcrypt ciphers, block modes, block sizes and IVs compared

Below is a comparison of PHP’s mcrypt ciphers, block modes, block sizes and IVs. Note that some ciphers support multiple key sizes. Also note that some ciphers are made for encrypt…

Read More

Things to consider when running eCommerce discounts

I was recently asked twice in the same month by two clients: “How do we go about adding discounts to our onine shop?” It’s one of those interesting question that seems simple on th…

Read More

What you need to know about PHP’s internal character encoding

Dealing with strings is an essential part of any web application and PHP is no different. Every developer, though, should be aware of character encoding. Character encoding, in the…

Read More

Who owns the copyright to your website?

I’ll need to give you the usual “I’m not a lawyer” disclaimer here so none of this should be taken as legal advice So, you’ve just paid for your website. That means you own all the…

Read More

How to stop Indian SEO spam emails with cPanel

We've all had these spam emails: Dear Sir/Madam, We are a Delhi-NCR, India based, and leading web services company with main competency in SEO ( Search Engine Optimization), worki…

Read More