Blog Archives

Filter out empty lines in WordPress

The visual editor in WordPress sometimes adds blank paragraphs against your will. Learn how to use a simple WordPress filter to remove all instances of <p>&nbsp;</p> from you posts’ content.

Posted in blog Tagged with: , ,

Don’t let the image resizer crash your server

A simple PHP throttling script to protect TimThumb (or any other CPU intensive script) against massive amounts of requests from the same IP.

Posted in blog Tagged with: , , , ,

PHP Tutorial: Build a backend manager for Smooth Gallery

In this tutorial I’ll walk you through the steps involved in building a databaseless PHP admin section for Smooth Gallery. When done, without much effort you should be able to adapt the code to fit any similar JavaScript image gallery.

Posted in blog Tagged with: , , , , ,

Using captcha without displaying it

How I use captcha without making my users complete the barely readable word Capthca sucks. For more information on how much captcha can suck see John Willis’ post Top 10 Worst Captchas. But at the same time it can be

Posted in blog Tagged with: , , , ,

Exclude trackbacks from recent comments listing

To spare some time I tryed googleing for don’t show trackbacks in recent comments but wasn’t able to find anything relevant at first glance. So, if you have the FreePress Recent Comments Widget and the long site titles from the

Posted in blog Tagged with: , ,

Secure a flat file using a .php extension

I need to store some sensitive data (user names and passwords) in a flat file. I don’t want to make any use of databases because this would defeat the whole purpose of the project. Of course, the passwords will be

Posted in blog Tagged with: , ,