Creating readable code

by mark on September 3, 2011 in code with No comments

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

by mark on February 6, 2011 in code, php with No comments

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

by mark on November 22, 2010 in code, php with No comments

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

by mark on October 25, 2010 in code, php with No comments

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

by mark on October 25, 2010 in code, php with No comments

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

by mark on October 1, 2010 in infrastructure, script with No comments

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...

← Older Entries
 
gipoco.com is neither affiliated with the authors of this page nor responsible for its contents. This is a safe-cache copy of the original web site.