Featured

Silverstripe Image Gallery Tutorial

June 10, 2010
Thumbnail image for Silverstripe Image Gallery Tutorial

I have had a few issues installing image gallery modules on Silverstripe 2.4. I’m new to using silverstripe so this is a beginners tutorial, the aim is to install a basic image gallery which fits the following criteria: Allow CMS users to upload photos Add custom fields to be associated with each image (such as [...]

5 XSS Exploits You Should Know About

June 19, 2009
Thumbnail image for 5 XSS Exploits You Should Know About

Following on from my HTTP Splitting post, this post rounds up 5 common cross site scripting (xss) attacks and how to prevent them. Stored XSS Reflected XSS XSS Phishing CSRF (Cross Site Request Forgery) XST Cross Site Tracing Preventing XSS

CakePHP Paginate Multiple Data Sets on One Page

November 17, 2008
Thumbnail image for CakePHP Paginate Multiple Data Sets on One Page

Wanted: a simple method to paginate multiple sets of data separately on a single page using the cakePHP paginator helper/object. The problem with standard cakePHP pagination In this case I want to paginate the news items, but I have a flag in the news item table for is_archive, so basically want to seperate the current [...]

PHP Voting System to Increase your Inbound Links

April 11, 2007
Thumbnail image for PHP Voting System to Increase your Inbound Links

Having some sort of web 2 point ohish interactive component on your website is a great way to generate buzz, get users coming back to the site and even generate inbound links. One such component I have seen work well is a voting system, made so much more popular by community driven sites such as [...]

How to Create a Robust Splash Page

November 3, 2006
Thumbnail image for How to Create a Robust Splash Page

Sending a user to a ‘splash’ page the first time they visit your site seems like a pretty simple task, but its not. At first glance I thought it would easily work a bit like this: Set a cookie on the ‘splash’ page using say: setcookie() that doesn’t expire for a very long time Check [...]

Simple Recursive PHP Tree Menu Example

October 23, 2006
Thumbnail image for Simple Recursive PHP Tree Menu Example

Recursion. It can be a bit to get your head around at first but it can often create a lightweight, robust and elegant solution. This is a pretty basic example of recursion using PHP which can display a list based tree of a catalogue or any sort of data which has parents, children and end [...]