In JavaScript, the immediate function pattern is a way of executing a function as soon as it is defined. In this article, I will explain the syntax and explore some of the advantages of using it. This syntax can also be referred to as a closure. Continue reading

PHP: Equal To

By Oliver

When you are using IF statements in PHP, you often see double equal signs (==) as the operator. You also sometimes see three equals signs (===). In this article I will explain the basic difference between the two, and why … Continue reading

Security: SQL Injections

By Callum Macrae

SQL injection is a common, although becoming less so, type of vulnerability that is occasionally found in websites that use SQL (Server Query Language) to access data at the server-side. If the code used to query the database doesn’t correctly … Continue reading

Posted in Security | 4 Comments

Cross-site scripting is a type of vulnerability that affects a surprisingly large number of websites, allowing an attacker to inject HTML into the website. Usually, this would be an iframe or a script, both of which can be dangerous. This article will explore the vulnerability and how you can secure your site against it. Continue reading

Posted in Security | 3 Comments

There is a popular rumour that while writing PHP, you should use double quotes wherever possible. This used to be true – before PHP 5.1 was released, there was a significant difference in speed between double and single quotes, and … Continue reading

Posted in PHP | 5 Comments

What is an SSL certificate? SSL (Secure Socket Layer) is should be used by all e-commerce websites to protect their user’s personal data, such as credit card numbers and addresses. It works by encrypting the traffic between the user’s web … Continue reading

CSS3 generators make a web developer’s life so much easier, particularly if you don’t use the properties very often. Here, I have gathered some of my favourite generators. Continue reading

Posted in CSS, CSS3, Design | Leave a comment

While writing an application, you may sometimes feel the need to create a script that can communicate with the user through the command line – perhaps you don’t feel the need to write an entire web GUI for your install script, or you just want to experiment. Continue reading

Posted in PHP | Leave a comment

You may have heard of version control (sometimes called revision control or source control), or you may have even used it briefly before, but never actually used it as part of a project. Some examples of version control systems are … Continue reading

Method Chaining in PHP

By Callum Macrae

Method chaining allows for shorter and cleaner code, and in this article I will explain how it is possible in PHP. Continue reading