Archives

Archive for July, 2007

2 down 1 to go

Today I completed the design for eel electrics, the home owned business of an electrician of the Yarra Valley and eastern suburbs of Melbourne.
It’s difficult without images and content to finalise a site, but the shell is there. Though, I am having domain name issues..
I’m getting business cards printed for mt beenak orchids with […]

1 down 2 to go, and my things..

hmm, my holidays are all but over - and i’ve spent them working and earning money..
My 4 weeks holiday that I had planned for turned into 8 days so very easilly, I kept being offered full time work and couldn’t pass it up.
Though, last week I finished a redesign of mt beenak orchids‘ website last […]

Evil Register Globals

( PHP )

In my previous post I confused myself it seems..
Register Globals was to blame - setting my session variables.. so my examples are just.. bad - here’s a better one.
<?php
 
session_start();
$_SESSION[‘name’] = ‘Mark’;
$name = “Raju Gautam”;
 
// Register globals ON will print ‘Raju Gautam’
// Register globals OFF will print ‘Mark’
echo $_SESSION[‘name’];
 
?>
That was more painful […]

OO, Encapsulation and breaking the rules

( Usability and PHP )

I’m making the shift from PHP4 style OO, to PHP5 style OO and I have a couple of beginner questions
The main differences that I can see are type constraints and encapsulation, in PHP5 you can set private, public, protected functions/variables and also be specific with type.
// PHP4
class SpiffyObject {
 
var […]

Funny Serial Number

Something about this really tickles my funny bone:
A perfectly valid serial number for Starcraft / Broodwards is 12345678901234
I see they are obviously offended by those dirty crackers.