Tips

Modrewrite and Short Urls - What you really want to know.

I recently opened up an old .htaccess and I was struck with the memory of how much it sucked trying to Google search for some real, working, answers on making short urls.

So here you go, my quick tip on what you really want to know about mod_rewrite.

› Continue reading

Tags: , , ,

Monday, January 5th, 2009 PHP, Tips, Web Development No Comments

Professional PHP

It’s important to remember what sets a professional PHP developer apart from the pack that floods your average help channel.

Too often I run into reviewing or helping a “professional” developer, and I can’t help but mutter “you’re doing it wrong…”

› Continue reading

Tags: , , ,

PHP & MySQL Tip #2 - Better Way of Pagination

I’ve seen this come up a few times in #php on irc.gamesurge.net - how to find the total number of rows found, while using the LIMIT clause on a query.

I’ve seen people respond with some seriously incorrect solutions, such as ‘Simply load all of the results into an array and only show X amount’ or ‘Simple run another query without the LIMIT clause and count those rows.’

Those two, common, solutions are sadly not the best solution.

Read on to discover my solution.

› Continue reading

Tags: , ,

Saturday, March 15th, 2008 MySQL, PHP, Tips No Comments

Problem Solving - guide to PHP programming and debugging.

Problem solving forms part of thinking.

Interesting… so, if so many web devs and IT personnel have such a problem with problem solving, perhaps they’re just not thinking? Let’s explore some of the problems I’ve seen people encounter, and how I was baffled they lacked the problem solving skills to complete their tasks.

› Continue reading

Sunday, March 2nd, 2008 Computers, PHP, Software Development, Tips 2 Comments