Combine & compress CSS files with PHP
Here is another technique for combining multiple CSS stylesheets into a single, compressed file.
Combine all CSS files with PHP
Here is a simple PHP script that will combine all CSS files (stylesheets) in a given directory. Delivering one CSS file with your web pages is much faster than delivering multiple files because there are fewer HTTP requests involved.
Infinite loop trap for spammers
In this WP-Mix post, we’ll see how to send spammers on a virtual infinite loop chasing down randomly generated email addresses. It’s very satisfying.
PHP trap for bad bots
Another effective trap for bad bots and spammers, built with PHP and a slice of .htaccess.
Live comment preview with JavaScript
Here is a simple way to display a live comment preview for any comment or contact form using ordinary JavaScript.
Simple email script with PHP
Here is a simple PHP script for sending email.
Display local time with JavaScript
Another oldie but goodie, here is a chunk of JavaScript code that will display local time in a variety of formats.
Simple PHP login form
Here’s a quick PHP snippet for creating a simple login form for your site.
Spammer Trap
Another bad-bot trap to keep spammers and other scumbags away from your website.
Display performance stats in WordPress
Here is how to display the page-generation time based on PHP and MySQL.
Override inline CSS styles
Quick tip for overriding inline CSS styles from within your stylesheet.
Stop form spam with a hidden field
Sick of teh spamz? Here’s an easy way to block a lot of automated spam from your contact form.