PHP Function: str_remove()
15th of April 2008 :: Blog :: No Comments »
15th of April 2008 :: Blog :: No Comments »
25th of February 2008 :: Guides :: No Comments »
Very useful commmand to make a .tar.gz compressed backup of important directories.
25th of February 2008 :: Guides :: No Comments »
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.
19th of February 2008 :: Guides :: No Comments »
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.
18th of February 2008 :: Javascript/Functions :: No Comments »
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.
18th of February 2008 :: Javascript/Functions :: 11 Comments »
Convert html tags and code to readable HTML entities. Mimics the PHP functions htmlspecialchars() and htmlentities().
Prevents from HTML script injection.
18th of February 2008 :: Guides :: 3 Comments »
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 »
16th of December 2007 :: PHP/Functions :: 1 Comment »
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.
13th of December 2007 :: PHP/Tutorials :: 13 Comments »
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…
30th of November 2007 :: PHP/Functions :: No Comments »
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.