Technical Articles

This technique, originally published on SEOMoz, outlines how to generate reports and charts depicting the performance of different sections of a website over a given time frame as opposed to a flat overall view of the website's traffic. The raison d'etre is that different website sections perform differently. read more...
on 10th August
  • seomoz
  • seo
  • google analytics
  • php4
  • csv
  • chart generation
We get this question all the time from third party developers who work with us. It's a must implement in any stable batch file. The problem: We want to loop through a file where either the name or path has a space in it. Why is this a problem? Ok, consider the following lines of code: read more...
on 7th October
  • for loop
  • batch file
  • spaces in path
  • file name spaces
Actually, it's impossible to do it without calling in the troops so to speak but there is a very neat way of adding floating point numbers in a batch application. Read on. read more...
on 7th October
  • batch file
  • floating point
  • batch file arithmetic
  • batch file math
Lately, across our network of sites, we've been getting more spam than usual. The cause of the problem, the spambots are getting better. Spambots are programmatic robots that crawl the internet (in much the same way the search engines do) with the sole purpose of gathering e-mail addresses in order to send you completely irrelevant promotional material. I've often wondered; it would be really easy to determine the context of the e-mail address you find and you could even glean information from multiple sources as to the consumer preferences of your subject, and increase what must be a dismal conversion rate for the spammers. Anyway, that's not what this article is about, this article is about e-mail obfuscation, or making the e-mail addresses on your site readable by humans but unintelligible to robots. read more...
on 27th August
  • email
  • obfuscator
  • php
  • munge
  • anti-spam
  • counter-spam
  • spambots
  • email harvester
There are a million ways to implement a PHP based content cache so why would we need another one. The only plausible reason I can think of is that most of the PHP caching implementations seem to overcomplicate the matter. In this article, we'll focus, not specifically on PHP caching but, on caching as a general system design principle and how it may be implemented. The code is written in PHP but the concepts can be applied to any server side script no matter what the language. A cache is a very simple thing. In essence, you do something, you save the result and then next time you're requested to do the same thing, you just fetch the result rather than working it out again. It's analogous to remembering that 4 x 4 = 16 rather than working it out every time. read more...
on 11th April
  • content cahce
  • php caching
  • cache php page
  • cache theory
  • cache system design