Well hello.

Stacked Bits is a blog about coding and developing in PHP and designing web sites using (X)HTML, CSS, JavaScript and more. Stacked Bits is also a very small company founded and run by Mark Kathmann.
We do web applications, web sites and general tech geekiness.

Creating readable code

Creating readable code

Posted in PHP on 03-Sep-2011

Whether you’re coding in PHP, JavaScript or almost any other current language, writing readable code is rarely a priority but it is definitely is a necessity if you want to maintain your code easily later or have to hand it over to someone else. Here’s some quick tips on keeping your code readable.

Read more >>

Free stuff: Chalkwork icon set by Dave Shea

Free stuff: Chalkwork icon set by Dave Shea

Posted in Design & CSS on 07-Mar-2011

Dave Shea (of mezzoblue fame) has decided to make his entire excellent Chalkwork icon set available free for personal use (under a CC license), and for a nominal fee for commercial use.

Read more >>

Secure email form processing in PHP

Secure email form processing in PHP

Posted in PHP on 06-Feb-2011

Forms are a standard and easy way to get feedback from your visitors, but if you’re not careful your form could be abused by spammers and/or hackers.

Read more >>

The correct use of quotes in PHP code

The correct use of quotes in PHP code

Posted in PHP on 22-Nov-2010

There are different types of quotes in PHP, but although most programmers interchange them freely, there are some definite differences between them that you should be aware of.

Read more >>

Some CSS tips for forms

Some CSS tips for forms

Posted in Design & CSS on 21-Nov-2010

Forms, however useful, can be quite boring. Here are some quick tips to make the forms more visually appealing and more user-friendly.

Read more >>

Adding gradients and backgrounds to text using CSS

Adding gradients and backgrounds to text using CSS

Posted in Design & CSS on 19-Nov-2010

If you want to spruce up your text by adding a gradient or a background image to it, there is an actually quite simple way to achieve that in CSS.

Read more >>

Quick tip: ban visitors by IP in PHP

Quick tip: ban visitors by IP in PHP

Posted in PHP on 25-Oct-2010

Here’s a quick tip on how to ban users based on their IP address, for example to stop trolls, spammers or abusers.

Read more >>

Calculating elapsed time in PHP

Calculating elapsed time in PHP

Posted in PHP on 25-Oct-2010

There are plenty of scripts around to count down to a date and time in the future, but what if you wanted to display the time that has elapsed since a point in the past? This article will take you through building a function to do the calculation and display the result in a nice format.

Read more >>