Creating readable code
Whether you’re coding in PHP, JavaScript or almost any other current language, writing readable code is rarely a priority but it is definitely 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...
Secure email form processing in PHP
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. Here are some ways for secure email form processing in PHP.
Read more...
The correct use of quotes in PHP code
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...
Quick tip: Ban visitors by IP in PHP
Here’s a quick tip on how to ban visitors based on their IP address, for example to stop trolls, spammers or abusers.
Read more...
Calculate elapsed time in PHP
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 calculate elapsed time and display the result in a nice format.
Read more...
Scripting a graceful guest shutdown on Vmware ESX
I know there are several scripts floating around out there that do a graceful guest shutdown, but I still decided to make one from scratch.
Read more...