Speed up Page Load by reducing HTTP requests with PHP

A nice technique to speed up your page loading times is to try to reduce the amount of calls your browsers has to make to the server. This will be every image, every css and every JavaScript file incl...

How to check if checkbox is checked using jQuery

I needed to find if a checkbox was checked in jquery but I knew of multiple ways to do this. But I wasn’t sure of the best way to perform this task. Still I haven’t decided on the best way to do this...

Using cURL in PHP

PHP/CURL is a binding that uses libcurl. It means that the PHP team has written a glue layer for PHP that speaks to the underlying libcurl. That layer, the binding, is what we call PHP/CURL and that i...

Remove Whitespace and line breaks in String

In any programming language there is a simple in-built function you can use to remove whitespace from a string the main one used will be a string replace to search for spaces and replace with empty. I...

Add and Remove Options in Select using jQuery

Removing an item from a select box using jQuery JQuery is a easy way of using JavaScript reducing the time it takes to code and reduces the amount of lines you need to code. This is a good example of...

Javascript isNumeric Function

When working with user inputs in web pages it is important that you validate all the inputs, this is so you can check that what the user is entering is the type of data you are expecting. It is import...

Check to see if a element exists in jQuery

In raw javascript using when dynamic elements you need to check to see if the element exists before you perform a certain action to the element or you will get a element undefined error. This is no di...

PHP Delete Directory and Files In Directory

In PHP if you want to delete a directory there is security against deleting a directory which has files in it. Therefore you need to delete all the files in the folder before you can delete the direct...

Gradient Colour Generator

For many web designs images which consist of colour gradients are used for background images, footers and headers. But since the web is all about loading times and trying to speed up your site loading...