Archived entries for CIW

Weekend and PHP time

Good Evening Folks! I have been working on some PHP recently. I have decided to change from .html to .php on big-andy.co.uk so that I could use a consistant navigation bar and any changes that I made would be only to one (navigation.php) file rather than 10+ files (with .html).

I did have some difficulty, however, with my current testing situation. I am using XAMPP on my PC to test what I make before I publish it online.
The root of my XAMPP site is http://localhost/ and the root of my website is http://big-andy.co.uk so I wanted to do some PHP to show the root and based on this to serve a different navigation (xampp-navigation.php or navigation.php) depending whether the page was on the XAMPP server or on the web-server. I did it like this:

<?php
if ($_SERVER["SERVER_NAME"] == "localhost"){ include'../php/xampp-navigation.php';} else {include'../php/navigation.php';}
?>

Thus the problem is now overcome and I can go back to my real life as a normal person.

In other news the conservative scum have gained more seats than any other party in the UK General Election much to my distaste. They didn’t gain enough seats to have a majority and we are now in a hung-parliament (no one party has a majority) for the first time since 1974. Will they do a deal with the lib-dems, or will the lib-dems do a deal with Labour scum?

It’s my Mum’s Birthday today so “Happy Birthday Mum!” we’re going over to Sandhurst tomorrow to have dinner at a restaurant with my brother, my girlfriend (both of whom need urgently to update their websites by the way) my Dad and Mum.

CIW Site-Designer

Web-design has always been a passion of mine and two years ago I started a course called Masters CIW Designer through a company called Advent Training. While progress has been at times fast I still have not finished the course and now that Advent Training have gone bust my training is being provided by Computeach and I have a deadline of July 17th 2010 to finish the course. There’s nothing like a deadline to focus one’s attention and I am cracking on with the course material!



Copyright © 2004–2012. All rights reserved.

RSS Feed. This blog is proudly powered by Wordpress and uses Modern Clix, a theme that’s been modified by me.