Saturday, July 4th, 2009

Archive for October, 2008

An advanced AJAX Star Rating Script

This is a great star rating system from Nomadic Functions. Compared to other traditional rating scripts, this one has a 1,680% increase in accuracy and 84 hot spots (84px wide), instead of only 5.

Read more

How to create an advanced (bad, naughty) words filter

This is a PHP Class useful if you need to filter (bad, naughty) words from a string (text), whether is a simple string or one containing HTML tags.

Read more

Equivalent of PHP’s array_combine() function

This is a JavaScript function that works like array_combine() in PHP.

Read more

How to add transparency to an image using GD

Do you want to make your images transparent using GD? Check this PHP Class.

Read more

Detecting Google Chrome Browser

This is a short function useful to detect if the visitor uses Chrome Browser.

Read more

Convert e-mail addresses from a string into clickable links

This is a snippet that finds e-mail addresses from a string using a regexp and converts them into clickable links.

Read more

Sort files from directory & order them by filemtime()

This is a function that selects files from a directory and orders them by the last time they were changed, in ascending or descending order. The script also calculates how much time passed since the file

Read more

Match non-alphanumeric characters from a string

This is a snippet that matches non-alphanumeric characters from a string (text).

Read more

Extract alphanumeric sequences from a string

This short snippet is useful if you need to extract alphanumeric sequences (characters) from a string.

Read more

Extract alphabetical sequences from a string

This function extracts alphabetical sequences from a string.

Read more

How to extract numbers from a string (text)

This is a short function that extracts numbers from a string.

Read more

Make an alphabetical selection from elements of an array

Here

Read more

Equivalent of trim() function for arrays

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

Read more

Randomize text letters while keeping the words readable

In 29 May 1999, Graham Rawlinson wrote a letter to New Scientist, commenting about a research made by 2 scientists: Kourosh Saberi and David Perrott. Here’s an excerpt from that letter:
You report that reversing 50-millisecond segments of recorded sound does not greatly affect listeners’ ability to understand speech (In Brief, 1 May, p 27). This [...]

Read more

How to create a Tag Cloud

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.

Read more