As dagon points out, supplying us with the error messages (you've got a parse error, for example) would be a good idea.
One problem I noticed immediately was this code:
$str = "thisD";
print $str;
You can't have a random variable and/or statement in the middle of a class definition.
EDIT: That code also causes a parse error in PHP 4.