Archive for November, 2007

PHP Function: dir_list_images()

This function will make an array of all the images in a directory, it will even include all subdirectories by default.
Again, I built this function for a friend who wanted to batch modify all the images using ImageMagick / GD2.
SHARETHIS.addEntry({ title: “PHP Function: dir_list_images()”, url: “http://www.arkinex.com/php/functions/17/php-function-dir_list_images/” });


Javascript Function: array_search()

Was writing some javascript for a friend and developed these simple functions for searching javascript arrays.
Becomes pretty useful when your working with select html boxes and arrays in javascript.
SHARETHIS.addEntry({ title: “Javascript Function: array_search()”, url: “http://www.arkinex.com/javascript/js-functions/16/javascript-array-search-functions/” });


Simple Swear/Badword Filtering tutorial

In this tutorial you’ll learn how to censor the swear words and profanity on your website.
You could even use this tutorial to prevent people making posts about your competitors.
* Contains strong language *
SHARETHIS.addEntry({ title: “Simple Swear/Badword Filtering tutorial”, url: “http://www.arkinex.com/php/tutorials/15/simple-swear-filter-tutorial/” });


PHP Function: format_filesize()

This function allows you to make user readable filesizes easily.
Example: ‘1024′ into ‘1Kb’.
SHARETHIS.addEntry({ title: “PHP Function: format_filesize()”, url: “http://www.arkinex.com/php/functions/14/format_filesize-to-get-user-readable-file-sizes/” });


PHP Function: duration()

This function will turn a unix timestamp into a user readable time.
Example: 115023234 into 1 day, 25 minutes ago.
SHARETHIS.addEntry({ title: “PHP Function: duration()”, url: “http://www.arkinex.com/php/functions/13/php-function-duration/” });


File-icon plugin hack, sorted list.

Today, i installed the Wordpress File Icons Plugin (v2.0) by  Roland Rust and discovered something really annoying whilst so great at the same time.
I think the file icon plugin is a great idea, but contains 2 problems.
SHARETHIS.addEntry({ title: “File-icon plugin hack, sorted list.”, url: “http://www.arkinex.com/wordpress/hacks/12/file-icon-hack/” });


jQuery Javascript Framework

Recently I tried to take my knowledge of Javascript to a new level, because, on the whole, it was pretty dire.
Whilst looking into new techniques and reading tutorials I came across some useful Javascript frameworks, specifically, jQuery, which caught my attention immediately.
SHARETHIS.addEntry({ title: “jQuery Javascript Framework”, url: “http://www.arkinex.com/javascript/frameworks/11/jquery-121/” });


Advanced Navigation II using Clean Urls

This tutorial will teach you how to implement clean SEO friendly web URLs.
Example: Turning /index.php?page=register into http://www.domain.com/register/.
SHARETHIS.addEntry({ title: “Advanced Navigation II using Clean Urls”, url: “http://www.arkinex.com/php/tutorials/8/navigation-using-clean-urls-htaccess/” });