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 codePosted 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. |
![]() |
Free stuff: Chalkwork icon set by Dave SheaPosted 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. |
![]() |
Secure email form processing in PHPPosted 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. |
![]() |
The correct use of quotes in PHP codePosted 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. |
![]() |
Some CSS tips for formsPosted 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. |
![]() |
Adding gradients and backgrounds to text using CSSPosted 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. |
![]() |
Quick tip: ban visitors by IP in PHPPosted 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. |
![]() |
Calculating elapsed time in PHPPosted 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. |