Archive for Development

Over sixteen ways to obfuscate e-mail addresses

Back in 2007 I wrote about email addresses on your website and how to avoid putting your email address in plain text.

A guy I know, named “csarven” also wrote about methods to hide email addresses from page source providing over 16 concepts for hiding your email address.

This was useful, but not practical, so I decided to write a PHP class…

Read the rest of this entry »

Comments

Replace strings MySQL

If you ever need to make big changes to your site, such as moving directory or changing the domain name you’ll know that you’ll have to make changes to the database for that to take affect.

Read the rest of this entry »

Comments

get_favicon() php function

I was after a php function that would get the favicon for a supplied domain, I did attempt to write my own but it proved more complex than I had first anticipated. Read the rest of this entry »

Comments

Premature optimization is the root of all evil

There’s loads of ways you can optimize your PHP code, however they are probably NOT the answer to your performance issues.

A wiser man than myself once said:

We should forget about small efficiencies, say about 97% of the time: premature optimization is the root of all evil. Yet we should not pass up our opportunities in that critical 3%.

This was originally said by Donald Knuth, the father of the analysis of algorithms.

This can also be applied when working with programming languages such as PHP.

Here’s some handy performance tips to point you in the right direction…

Read the rest of this entry »

Comments (1)

rglob.php

Today I was having a look on PHP.net and noticed a PHP contest so I decided to submit one of my functions.

I chose the rglob() function.

Read the rest of this entry »

Comments (1)

« Previous Page« Previous entries « Previous Page · Next Page » Next entries »Next Page »