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 »


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 »


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)


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)

50+ PHP optimisation tips revisited

After reading an article some time ago entitled “40 Tips for optimizing your php Code” (and some others that are suspiciously similar), I decided to redo it, but properly this time with more accurate tips, providing references and citations for each and every one.

The result is this list of over 50 PHP optimisation tips…

Update: The list is more like 50+ PHP tips and tricks these days.


Read the rest of this entry »

Comments (38)

« Previous Page « Previous Page Next entries »