30 Lessons To Learn And Code

FREE

Get Keyword Frequency In PHP

in PHP

In this tutorial we're going to find out how we can get the keyword frequency from a string or even a webpage in PHP. This information is useful when you're...

Read More


FREE

Convert Image To Data URI With PHP

in PHP

One of the easiest ways to speed up your page loading times is to reduce the amount of HTTP requests that your website makes, each time your webpage needs to...

Read More


Get Image Src With PHP

in PHP

There are some occasions where you need to get the attribute value in PHP from a HTML element, this can be for migration reasons or perhaps you are writing a...

Read More


Calculate Different Shades Of A Colour

in PHP

There are different ways colours are defined the two most popular values in web are HEX or RGB. Both of these values have a logical formula to working out what...

Read More


Cache Google Web Fonts Api

in PHP

Google web fonts is a huge library of free web friendly fonts you can easily use on your website. The fonts are loaded in to your website with Javascript and...

Read More


Force Browsers To Load Latest CSS And JS

in PHP

In modern browsers they will cache most external aspects of the website, they will cache all images and even stylesheets and javascript files of your website. During a website redesign...

Read More


FREE

PHP Template Engines

in PHP

A PHP template engine is a way of outputting PHP in your HTML, without using PHP syntax or PHP tags. It's suppose to be used by having a PHP class...

Read More


FREE

Automatically Detect Browser Language With PHP

in PHP

When you are working on a multi national website you may need the functionality to translate your website into different languages. There are many ways you can translate a website,...

Read More


FREE

PHP Debug In Browser Console

in PHP

When debugging in PHP there are a few techniques you can use, you could use something like Xdebug which will allow you to step through your code at run time...

Read More


FREE

Resize Image Class With PHP

in PHP

A common feature that you will across in websites is the ability to resize an image to fit an exact size so that it will displayed correctly on your design....

Read More


FREE

Check A Credit Card Number Passes Luhn Check

in PHP

When you accept credit card numbers on your website you need to do a number of different validation checks on the credit card numbers the user enters. When the form...

Read More


FREE

Create A Weather Application With Google API Using PHP

in PHP

As of August 2013 Google shut down it's weather API. The following tutorial will not work with the Google weather API but you can use the following code for another...

Read More


FREE

Display Message To Stumbleupon Visitors In PHP

in PHP

Stumbleupon is a great way of getting lots of visitors to your site. All you have to do is submit your pages to Stumbleupon and when people stumble in their...

Read More


FREE

Display Gravatar From Email Address

in PHP

In a previous article you learnt how you can display the the author avatar in WordPress. But if you aren't using WordPress then you will need to use a Gravatar.

Read More


FREE

Use PHP To Detect An Ajax Request

in PHP

Here is a quick PHP snippet that you can use to tell if the request coming to the page is from a form or from an Ajax request. Where a...

Read More


FREE

Get Any Website Alexa Rank Using PHP

in PHP

In past tutorials here you have learned how to get your Twitter followers and your Feedburner subscriber numbers. They are both useful information to use to judge how popular your...

Read More


FREE

Display Feedburner Subscribers

in PHP

The Feedburner API has been shut down since October 20th 2012. You can still use the counter widget but can not use the API directly any more. What Is Feedburner?...

Read More


FREE

Display Different Content For Visitors From Twitter

in PHP

For website marketing reasons you might want to see how a visitor is finding your site so you can display a different message for different users.

Read More


FREE

Cross Domain AJAX Requests

in PHP

Introduction Now on the web AJAX calls are becoming more and more common, they can be very useful to create a better user experience on your web applications. But on...

Read More


FREE

How To Make A Simple Paginate PHP Class With Light & Dark Styles

in PHP

View Demo

Read More


FREE

How To Use Twitter API To Display Your Twitter Updates

in PHP

Updated: On March 5th 2013 Twitter is closing down the first version of the API and it will be fully replaced by version 1.1. Learn how to use the new...

Read More


FREE

Create Tiny URL Link With PHP Function

in PHP

Tiny URL site allows you to compress the size of your URLs which is mostly used on the social networking site twitter, because of the limited characters you can use....

Read More


FREE

PHP Code to Combine and Compress CSS

in PHP

A couple of Google updates ago they worked on page loading speeds, so if your page loaded faster then your website will be ranked higher. Easy ways to improve on...

Read More


FREE

PHP Password Generator Snippet

in PHP

Get stuck trying to pick a new password each time you signup to a new service or website. Most people do use the same password on every site that they...

Read More


FREE

Get Twitter Followers From Twitter XML

in PHP

As of March 5th 2013 this technique will not work anymore as this uses the old Twitter API, to learn how to use the new Twitter API have a look...

Read More


FREE

Learn How To Create An AJAX PHP Coming Soon Page

in PHP

In this tutorial we are going to learn how to create a Coming Soon Page which allows the visitor to send their email address which can be delivered to an...

Read More


FREE

Compress multiple CSS Files

in PHP

If you are using multiple CSS files on a large website sometimes they can take along time to long the best way to deal with this is to compress the...

Read More


FREE

Calculate distances in PHP

in PHP

Here is a code snippet which allows you to calculate the distance between longitude and latitudes in either miles, kilometres or nautical miles.

Read More


FREE

Speed up Page Load by reducing HTTP requests with PHP

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

Read More


FREE

Using cURL in PHP

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

Read More