Posts RSS Comments RSS 19 Posts and 46 Comments till now
This wordpress theme is downloaded from wordpress themes website.

PHP Function: str_remove()

Thought it’d be useful and make more sense to make a str_remove() function because there isn’t one.

function str_remove($word, $str) {
return str_replace($word, '', $str);
}
?>

[Slashdot] [Digg] [Reddit] [del.icio.us] [Facebook] [Technorati] [Google] [StumbleUpon]

Creating a .tar.gz Backup on Linux

Very useful commmand to make a .tar.gz compressed backup of important directories.

Continue Reading »

Upgrade PHP5 & MySQL 5 to latest on Debian

Sometimes the packages on your desired apt-get mirror aren’t kept up to date.
A friend recently showed me how to upgrade to the latest and securist version using a special apt-get mirror service that specializes in LAMP installations.

Continue Reading »

Installing and Configuring Samba on Debian 4

In this guide you will learn how to install Samba on Linux (Debian 4 / etch).
Installing Samba allows you to share files over the network for Mac, Windows and other Linux computers.

Continue Reading »

Javascript Function: strip_tags()

A useful function to mimic to PHP function strip_tags() to strip all HTML tags and markup from a string.

Useful when parsing client input on the fly. Extra checks should be added though.

Continue Reading »

Javascript Function: htmlentities()

Convert html tags and code to readable HTML entities. Mimics the PHP functions htmlspecialchars() and htmlentities().
Prevents from HTML script injection.

Continue Reading »

Installing Apache2, Mysql5 and PHP5 on Debian Linux

Today i decided to setup my own personal server to work from, as I’m tired of waiting the few seconds it takes to upload, reload and then almost instantly make changes to a file i’m working on. This guide will cover installing and updating Apache 2, MySQL 5 and PHP 5 on Debian Linux (5.0/etch).
Continue Reading »

List all links on a website using DOM

Have you heard of DOM before? If not it stands for Document Object Model and is a method of accessing XML or XHTML page elements (tags) and attributes, such as <book_title> in XML or <img src=”pie.jpg”> in XHTML (’src’ being the attribute).

Once you start playing with DOM you realize the massive potential it has for parsing information from webpages.

Continue Reading »

RSS Feed from a MySQL Database

This tutorial will teach you how to create a simple RSS 2.0 compliant feed from a MySQL (or others with a few small changes) database.

The first thing you must do in a RSS document is to define that it is indeed an RSS feed. We do this like so…

Continue Reading »

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.

Continue Reading »

Next Page »