DavGothic

Web & Mobile Application Developer

  • Home
  • About
  • Contact

All posts in Snippets

Display a Maintenance Page During a Site Upgrade Using .htaccess

By David Hancock On 02/06/2011 In Snippets With No comments

Have you ever wanted to display a maintenance page to all of the visitors to your site, whilst still being able to view it as normal yourself?

This small snippet will do just that, as the title suggests it requires a .htaccess file so it’ll only work with Apache.
Continue reading →

Recursively Delete Directories Using PHP

By David Hancock On 31/01/2011 In Snippets With No comments

Today I needed to write a small simple function to delete a directory and all of its contents. To accomplish this task I thought I would use one of lesser known extensions of PHP 5: SPL (Standard PHP Library).

I was actually pleasantly surprised at just how easy it was.
Continue reading →

Social Links

  • Facebook
  • Flickr
  • Forrst
  • Google+
  • Twitter

Categories

  • Chit-Chat
  • Experiments
  • Freebies
  • Snippets
  • Tutorials

Archives

  • October 2011
  • September 2011
  • August 2011
  • July 2011
  • June 2011
  • May 2011
  • March 2011
  • January 2011

Latest Post

  • Audio Player Skin

    22/10/2011 · No Comments

    It’s been a while since I’ve posted so I thought I’d make today’s post a freebie! Here it is, a simple audio player skin for jQuery jPlayer. Download and enjoy!

Latest Tweets

  • Clean & Simple Notifications (PSD) http://t.co/UuTWw6old2 about 19 hours ago
  • Generating a List of Timezones with PHP http://t.co/UVv4yDGvfV 20 May

Latest Forrst Posts

  • New WordPress Theme Design 16 September
  • Fancy Image Carousel 10 September
  • Display a maintenance page during a site upgrade using .htaccess 3 June
  • Clean Looking Form Elements 25 May

GitHub Projects

  • AjaxFileUpload
  • bones
  • DG-Forrst
  • DG-Tweets
  • docs
  • dotfiles
  • DummyText
  • Forrest
  • Geocoder
  • jQuery-Currency
Copyright © 2011 David Hancock · Powered by WordPress