]> Will Craig, Web Developer, LAMP Programmer | Cheltenham, Gloucestershire " type="text/css" />

Pointing Website Root To osCommerce Catalogue Directory

May 31st, 2010

This is a simple snippet and configuration change which you can use to point the root of your website to your installation directory, normally ‘catalog’. This would mean the URL in the address bar would become http://www.mydomain.com/index.php instead of http://www.mydomain.com/catalog/index.php. An amateur coder could easily modify this code for other web projects. Pointing website root to WordPress installation directory

Read the rest of this entry »

Figures In Comfort Project Report

May 23rd, 2010
Figures In Comfort Screen-shot

Figure Cases Product Listing (FIGURE 1)

Figures in comfort asked me to produce a method of ensuring that customers can only select the amount of foam that will fit into the cases.

The previous system allowed customers to choose more foam than would fit, which made it take longer for them to be able to fulfil the order.

This is because some trays are double, triple and even quadruple depth.

The client would first have to contact the customer to explain, costing time and money.

Read the rest of this entry »

PHP Objects, The Basics

February 26th, 2010

I have come across classes very often and use classes distributed on phpclasses.org such as phpMailer, an excellent class for sending emails using PHP. A class allows programmers to separate code from the main systems while being able to access and define variables for access outside the class, inside the class or just within one function in the class.

In this article I will discuss the general structure of a simple class and usage of a simple “HELLO” class as an example.

Read the rest of this entry »

TinyBox, a lightweight lightbox script by Leigeber

February 25th, 2010

tinyBox screenshotToday I came across a useful new script called TinyBox a lightweight light-box script. At 3.4KB, it is a light-box in its simplest form. It supplies you with the framework to develop a light-box for any purpose.

Read the rest of this entry »

HTML Standards

February 25th, 2010

The fundamental reason for HTML standards compliance is to ensure that you use only those elements and structures that are likely to be understood by the widest range of user agents.

It’s like English – if I were to speak East Anglian most other English speakers would not understand everything I say.
Similarly, if you use proprietary dialects of HTML, some user agents won’t understand everything you write.

There is however, a standard for HTML which the browser makers say they support, and validation points out the potential problems in your HTML source. By adhering to the standards you maximise the accessibility of your work to the widest range of user agents, and therefore, users.