Archive for PHP

Automatically determining PageRank, or, unsigned integers in PHP

Market Ruler, LLC develops software for web marketers – and as such, I’m always on the lookout for new technologies to make life easier on the PPC and SEO crowd.

I recently took the SEOMoz toolset for a spin, and in one of their tests, I saw that they automatically checked the Google PageRank of a site. Since I’m the type who likes to see how this is done … » Continue reading “Automatically determining PageRank, or, unsigned integers in PHP”

Comments (6)

Top 5 Most Useful non-native PHP functions

Since I’ve been working within PHP for almost 8 years now, I’ve developed some tools which would be nice if included in the core of PHP but I find it hard to do without.

As I have forked off various stand-alone projects which don’t have my usual library of PHP code attached to them, I’ve found myself copying these functions around as they are truly essential to coding almost anything.

You’ll note that a few principles of programming in the following examples:

  • Sensible defaults for values are always allowed to be provided by the caller
  • Handle multiple input values (arrays) seamlessly when it makes sense
  • Support functional programming such that return values generally allow further execution without if statements

And awaaaaaaay we go … » Continue reading “Top 5 Most Useful non-native PHP functions”

Comments (2)