Main Page Content
Code
Submission Style Guide: Code
A Very Simple and Effective Captcha
I have a very simple anti-bot spam technique that works extremely well. It requires no javascript, cookies or complicated server weirdness, is fully accessible, has no hidden fields, has negligible overhead and takes just a moment or two to implement. It requires that the user fill out one field with a number, so it's good for anti-bot but will not prevent human spammers. In three years, I have yet to receive any spam on any of the many sites that I have installed this on. Sites that were being bombarded with hundreds of spams daily suddenly became quiet and good emails get though.
Read More »Search Engine Friendly URLs with IIS and Classic ASP
A few years ago, I needed a Content Management System (CMS) for my site Voor Beginners and its English counterpart For Beginners. One of the requirements was, that the CMS should use "search engine friendly" URLs. This is fairly easy to accomplish with Linux and Apache; however, another requirement was that the CMS should run on the Windows platform... In this article, I will show how you can "simulate" the effects of .htaccess and mod_rewrite using Microsoft's Internet Information Server (IIS) and classic ASP.
Read More »Failover Database Connection with PHP + mySQL
You want to connect to a mySQL database? Well, then it's likely you already know how. But how about connecting a second database if the first one fails? No? This could be a life saver.
Read More »Making websites: what's your target audience ?
Working With Fractions In CSS and PHP
Most of us are uncomfortable with using fractions when writting programs. If we encounter a fraction, we will first convert it into a floating point number (with decimals) and proceed from there. Most programming languages would prefer to use 0.5 as opposed to 1/2 because the later conflicts with the syntax of the languages. In this article, I will discuss an approach to working with fractions in PHP and CSS in one of the projects that I have done.
Read More »Quick Calendar Using AJAX and PHP
Online calendars are often used in many web applications. Though popular, the logic behind creating a calendar can be scary especially for those who are new to programming. There are many web calendars in the market but some of them are quite complicated. If we are not able to understand the code, it becomes harder for us to customise the calendar to fit into our existing application. As such, we need to create a calendar that can plug itself into any system seamlessly without problems. Whether we are using wordpress, mambo or drupal, we should only need to insert one line into our code for the calendar to work.
Read More »
