Website Development

Wordpress

Speed Up Your WordPress Website

In my last article I showed you how begin the search engine optimisation of your Wordpress website. In this article I am going to explain how you can further optimise your site by improving page load times. The tips in this article can easily reduce the download size of a single page request from in excess of 1MB to 200KB and even less in subsequent page visits without any noticeable change in the website.
Continue Reading
Cubecart5

CubeCart 5 Plugin – Part Two

This is part two of our CubeCart 5 plugin tutorial allowing you to set the default sort order for products.
Continue Reading
Cubecart5

CubeCart 5 Plugin – Part One

CubeCart 5 is a great eCommerce shopping cart with great out of the box features. Having said this, in my experience whichever eCommerce package you choose the customers will often want a feature that is not available out of the box. CubeCart 5 solves this problem by providing a hook system enabling the easy integration of custom made plugins without the need to alter any of the source code. In this post I have included the code to create a simple advance settings plugin which will allow you to set the default sort order for products on the category pages, allowing you to set the default sort order by price, date added or name.
Continue Reading
PHP

PHP Secure File Upload Script

This article provides a simple php secure file upload and validation function. As a web developer security should be a top priority. This is never more important than when allowing the upload of files to the server as the scope to initiate an attack increases greatly without the proper checks in place. Below is a function that can be used to upload files to your server in a secure manor. Only files that have a valid extension and MIME type and that are below a set size limit can be uploaded. For added security when uploading images you can also check that the file is a valid image. And finally, you can randomise the file name to further increase security.
Continue Reading