PHP: Sanitizing File Names

0 Comments

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.

Snippets - PHP
Read More

PHP: Encode HTML Inside <pre> or <code> Tags

0 Comments

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.

Snippets - PHP
Read More

CSS: line-height neglected

0 Comments

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.

Snippets - CSS
Read More

The House6 Blog

0 Comments

Powered, partly, by WordPressI 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.

House 6 Designs
Read More

The Origin of Expression

0 Comments

The Origin of Expression

And so it begins …

House 6 Designs
Read More