TipClique Tutorials feed. Recently Popular PHP Tutorials


Oct 3

Creating a Tag Cloud

Posted by , in PHP Tutorials

This is a short tutorial that will give you an idea of how to create a Tag Cloud and implemented it the pages of your website.

Popularity: 18.6%

Thumbnail for Creating a Tag Cloud
Clique It


Oct 3

Display values from an array in random order

Posted by , in PHP Tutorials

This is a function that randomizes the order of the elements in an array.

Popularity: 17%

Thumbnail for Display values from an array in random order
Clique It


Oct 3

Cropping a rectangle image to square using GD

Posted by , in PHP Tutorials

This is a PHP Class that crops images (rectangles) to squares using the GD library.

Popularity: 18.6%

Thumbnail for Cropping a rectangle image to square using GD
Clique It


Oct 3

How to remove a (non-empty) directory

Posted by , in PHP Tutorials

Here’s a snippet that can help you to remove a non-empty directory from the server. It’s a recursive function that deletes the directory with its files, folders and sub-folders.

Popularity: 17%

Thumbnail for How to remove a (non-empty) directory
Clique It


Oct 3

How to resize an image (on the fly) and keep its aspect...

Posted by , in PHP Tutorials

This is a PHP Class useful if you need to resize images keeping their aspect ratio, using the GD Library. The new height is calculated proportionally to the new width's size and reverse. For instance you have an image with the following dimensions: width - 1000, height - 800. Its thumbnail with a width of [...]

Popularity: 18.3%

Thumbnail for How to resize an image (on the fly) and keep its aspect...
Clique It


Oct 1

Using an autoload function to make your life easier

Posted by , in PHP Tutorials

In PHP 5 you can make your life a lot easier by writing an autoload function. This function will automatically load your classes, so you do not need to repeatedly include classes on every page.

Popularity: 17.3%

Thumbnail for Using an autoload function to make your life easier
Clique It


Sep 29

Loading Excel Data Using PHP

Posted by , in PHP Tutorials

Some PHP applications (most often CMS backends) need to load Excel data directly from .xls file, manipulate and insert into a database. This tutorial shows one of the ways how to do it.

Popularity: 17%

Thumbnail for Loading Excel Data Using PHP
Clique It


Sep 26

Shorten a string (text)

Posted by , in PHP Tutorials

This is a function which shortens a text. For instance, this is useful when you want to display in a page excerpts from your articles (with the link to the full article).

Popularity: 17%

Thumbnail for Shorten a string (text)
Clique It


Sep 26

Show random image(s) from a directory

Posted by , in PHP Tutorials

This script is useful if you need to randomly select images from a directory.

Popularity: 17%

Thumbnail for Show random image(s) from a directory
Clique It


Sep 26

How to convert smilies to graphics

Posted by , in PHP Tutorials

This is a function that modifies a text (comment) by converting the emoticons like , , (Y) etc. to graphic icons.

Popularity: 18.6%

Thumbnail for How to convert smilies to graphics
Clique It


Sep 25

Advanced IP Ban Script

Posted by , in PHP Tutorials

This script is useful if you want to restrict the access to some people on your site, based on their IPs. There are 2 lists which can be used: one which has a list of the IPs you want to ban and one which you can use to ban a range of IPs. The script [...]

Popularity: 17%

Thumbnail for Advanced IP Ban Script
Clique It


Sep 25

Submit a form without page refresh using JQuery & AJAX

Posted by , in PHP Tutorials

The aim of this tutorial is to help you to create a simple (tableless) contact form using AJAX, JQuery & PHP. We will have a HTML page which will contain the form, a CSS file, a php page where the data will be sent and another file where the validation function(s) will be located.

Popularity: 21.7%

Thumbnail for Submit a form without page refresh using JQuery & AJAX
Clique It


Sep 6

Working with dates and times in PHP

Posted by , in PHP Tutorials

When developing more complex PHP sites, especially forums, discussion boards and blogs where date and time functions are important, you’ll regularly encounter situations where you need to display and manipulate values based around the current date and time. PHP includes a range of functions which can help you to easily format and adjust your date [...]

Popularity: 17%

Thumbnail for Working with dates and times in PHP
Clique It


Sep 6

PHP Image manipulation with GD2

Posted by , in PHP Tutorials

One of the more surprising things you can learn about PHP is that it’s actually very useful when it comes to manipulating images of varying filetypes and formats. And a good thing too, since a lot of the internet is made up of pictures! The functionality of PHP in terms of image manipulation ranges from very [...]

Popularity: 17%

Thumbnail for PHP Image manipulation with GD2
Clique It


Sep 6

Reporting and handling errors in PHP

Posted by , in PHP Tutorials

When developing a PHP project, whether it’s a simple website or a much larger web application, it’s always a good idea to take into account the potential appearance of errors in your PHP code. An error occurs whenever PHP tries to execute an instruction which either results in an impossible outcome, or otherwise prevents the [...]

Popularity: 17%

Thumbnail for Reporting and handling errors in PHP
Clique It


Tutorials 31-45 of 100