Subscribe to feed Gabriel’s Recently Popular Tutorial Posts


Oct 6

How to extract numbers from a string (text)

Posted by , in PHP Tutorials

This is a short function that extracts numbers from a string

Popularity: 16.8%

Thumbnail for How to extract numbers from a string (text)
Clique It


Oct 6

Make an alphabetical selection from elements of an array

Posted by , in PHP Tutorials

Here’s a snippet that extracts elements from an array starting with a specific letter (alphabetical search).

Popularity: 16.8%

Thumbnail for Make an alphabetical selection from elements of an array
Clique It


Oct 6

Equivalent of trim() function for arrays

Posted by , in PHP Tutorials

This function strips the null element values from the beginning and ending of an array.

Popularity: 18%

Thumbnail for Equivalent of trim() function for arrays
Clique It


Oct 6

Randomize text letters while keeping the words readable

Posted by , in PHP Tutorials

This is a function that converts a normal text into a scrambled one, but still readable.

Popularity: 16.8%

Thumbnail for Randomize text letters while keeping the words readable
Clique It


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.4%

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: 16.8%

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.4%

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: 16.8%

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%

Thumbnail for How to resize an image (on the fly) and keep its aspect...
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: 16.8%

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: 16.8%

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.4%

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: 16.8%

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.4%

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