PHP: Sanitizing File Names
Working with user-based file uploads can be a pain. A lot of characters that are allowed in Windows file systems do not play well with web servers (*nix). Some unicode characters, special characters, and apostrophes can wreak havoc with insecure scripting, so it’s helpful to have some sort of sanitization before data is finalized and submitted – especially when working with database injection.
PHP: Encode HTML Inside <pre> or <code> Tags
While creating the backend for this site, I needed a way for users to post code in their comments. I also needed to preserve special classes applied to <pre> and <code> tags to enable syntax highlighting. WordPress’ built-in functions automatically strip out all HTML tags from posted comments. So, I had to write my own.
CSS: line-height neglected
Just a simple CSS tip … use line-height!
That’s it. End of story …
Ok, so I guess you want some sort of explanation … fair enough.
The House6 Blog
I just wanted to post a few words about this blog. It is powered by WordPress, but it is not a WordPress blog.
I’ve always liked the functionality of the WP core … the administration area is excellent, but I’ve found the frontend to be lacking. I know there are countless themes, plugins, and widgets to download to give it some variety, but I just don’t like the look of a standard “blog”. Besides, I’m a designer and I like to create my sites from scratch.





