PHP4 with classes, quick note: if you want to reference class variables within a method, you MUST use $this->$classvar, not just $classvar. Unlike C , PHP4 does not need variables declared before you use them. So when you assign a value to a variable in a method, thinking that it is the classvar that you are assigning to, it will actually create a local instance of the variable instead…