[PHP] Operators

Thursday, 09. 25. 2008  –  Category: Development

There are a few different types of operators in PHP and I will cover the most commonly used ones.
Arithmetic Operators
These are list basic maths. The 4 most common are:
Addition
Sum of $a and $b.

<?php
$a = 4;
$b = 3;
echo $a + $b;
?>

Outputs:

7

Subtraction
Difference of $a and $b.

<?php
$a = 4;
$b = 3;
echo $a - $b;
?>

Outputs:

1

Multiplication
Product of $a and [...]

[PHP] Introduction

Wednesday, 09. 24. 2008  –  Category: Development

Syntax
When writing PHP code it is best to use the following opening and closing statements:

<?php
?>

On some websites and scripts you may see it written like this:

<?
?>

This is not good practice as not all servers will be set up to allow this shorthand tag.
File extension
Files with PHP in should generally have the file extension .php but [...]

Building on this snippet from Drupal to get related node items sharing the same taxonomy terms for 4.7, I have made it work for multiple terms.  This snippet is for Drupal 5 and has been tested to work on 5.10.
The code will return a list view of 5 (changeable with $num_nodes) in an unordered list [...]

[Drupal] Installation

Monday, 09. 22. 2008  –  Category: Development

You will need to have set up an IIS or Apache webserver with PHP 5.2 or greater and a Mysql/PostgreSQL database before you can work on Drupal. For more requirements see [Drupal] Overview.
If you do not have a webserver yet but wish to set up your personal computer as a testing environment, please read through [...]

You can approach the set up of a test environment in 2 seperate ways. You can manually set up Apache/IIS, PHP and MySQL seperately then configure them to work together or you can use a package such as WAMP (Apache, MySQL, PHP) or XAMPP (Apache, MySQL, PHP, Perl).
There are benefits to manually setting up each bit of software [...]

[Drupal] Overview

Monday, 09. 22. 2008  –  Category: Development

What is Drupal?
Drupal is an open source CMF (Content Management Framework) created by Dries Buytaert.
What is the difference between a CMS and a CMF?
Not a lot but Drupal is refered to as a CMF due to is configurability and customisation that you are able to do through it’s excellent back end and through the use of [...]

Premier4509 show off their new kits

Monday, 09. 22. 2008  –  Category: Cars

Premier4509 has released images of 4 new body kits.
The first being for the Aston Martin V8 Vantage.

 
Next we have the Bentley Continental GT.

They have also released images of both the Lamborghini Gallardo and the Lamborghini Murcielago.
Source: Seriouswheels

UK Counties & Countries data files (CSV + MySQL)

Monday, 09. 22. 2008  –  Category: Other

The following files are data files that can be used in projects that require a list of UK Counties and/or all of the Countries in the world.
The following files are useful for web developers to use for their select drop downs or a lookup table in a database.

This tutorial will teach you how to import a tab delimited file in to a MySQL database. I built a program to do this for Windows ISA Server logs which contained over 500,000 lines which was way too many for Microsoft Excel to handle and too much for notepad to handle properly. What MySQL functions [...]

[Photoshop] Chrome your car

Sunday, 09. 21. 2008  –  Category: Development

This tutorial teaches you how to chrome a cars paint.  This will only work properly on dark cars and works best on black cars.

View tutorial at Skeletorscorpse.com

Good ‘ol Worms

Wednesday, 09. 17. 2008  –  Category: Gaming

With all the new 3D games coming out that aren’t filling that spot of boredom I decided to get out the dusty copy or Worms Armageddon. Surprisingly supporting a resolution up to 1920 x 1200 with no problems too.
Why do all the old games seem to be more fun years and years on when the [...]

Google Chrome really Safari in disguise?

Tuesday, 09. 2. 2008  –  Category: PCs

While enabling Google Gears from within the newly released Google Chrome, I noticed something odd about the wording.
In Firefox and IE, you get the same text:

Make note of the first paragraph. Now if you open up the same javascript window within Google Chrome, you get this:

Once again, note the first paragraph again.  Within Google Chrome [...]