Code

Website Theme

PHP Variables and constants

March 2nd, 2007

Variables introduction

Variables are used by programmers to store values and to refer to those values in code. Variables in PHP need not be defined. Variable types also do not exist although variable scope does. All variables begin with a $ sign. Variable names can contain numbers, letters and underscores. Variable names can only begin with letters or underscores. PHP variables are case sensitive. For ex: $a is different from $A. Below are given some examples of valid variable names:

Read more »»

Standards based coding is easy

October 6th, 2006

Coding according to w3c standards is a major selling point for website designers these days. But how hard is it really? Consider some of the differences between valid XHTML transitional and the usual sloppy HTML coding:
Read more »»

PHP introduction, code delimiters, comments and statements

September 18th, 2006

Introduction

PHP Hypertext Preprocessor (PHP) is the most popular server-side scripting language on the world wide web. This guide is designed to introduce programmers familiar with other programming languages to PHP.

This guide will take the form of a series of posts that will cover PHP from the basics to intermediate level. In this post I will cover code delimiters, comments and PHP statements.

Read more »»

CSS button hovers without the lag

September 17th, 2006
Both the hover (bottom) and normal (top) states of the button are in one image.

One of the best features of css is the ability to perform button hovers without java script. By button hovers I mean creating links that have different background images based on whether the mouse pointer is over the link or not. With CSS this is as simple as setting different background images for the a tag and the a:hover pseudo class:

Read more »»

Search engine optimization basics

August 17th, 2006

Search engines are used by all netizens to find useful content. Search Engine Optimization or SEO is the art of developing websites that enjoy a good position on search engine results pages. Website designers and developers are keen to see their websites succeed.  Optimizing thier websites for search engine traffic can really help improve their website’s visibility. In this post I examine some of the key factors that affect search engine rankings. Read more »»