At a guess: you're using an obsolete version of PHP, i.e. something prior to PHP5.0.
PS: Assuming that's the case, by far the best fix is to upgrade (or move) to a current, supported PHP5.x version. If that is not feasible at this time, then the class variable declarations will need to be changed to var $variable_name; with no access keyword ('public', 'protected', or 'private'), and likewise any class function declarations will need to have any access keyword removed. (And there's still no guarantee at this point that the code might not me using newer functions which are not supported under PHP4.)
FYI: PHP4 has not been supported at all for quite some time now, including security fixes, so its really to your best interest in many ways to get on board with the latest/greatest PHP, though of course this may require some updating of any legacy PHP4 code you're using.