PHP Classes

Getting an error

Recommend this page to a friend!

      mabp::tagCloud  >  All threads  >  Getting an error  >  (Un) Subscribe thread alerts  
Subject:Getting an error
Summary:Getting an error in this class
Messages:3
Author:Laura Cotterman
Date:2007-02-09 21:37:28
Update:2007-02-27 15:04:46
 

  1. Getting an error   Reply   Report abuse  
Picture of Laura Cotterman Laura Cotterman - 2007-02-09 21:37:28
I am getting this error msg when I try to run the code.

Parse error: parse error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in /vservers/cotterma/htdocs/class.tagCloud.php on line 10

I have not edited the files at all.

Thanks

  2. Re: Getting an error   Reply   Report abuse  
Picture of CTAPbIu_MABP CTAPbIu_MABP - 2007-02-26 11:54:31 - In reply to message 1 from Laura Cotterman
line 10 is:

public $color = array(0,0,0); // cloud color is black (#000000)

You have error on word "public" so you use PHP 4!
if you want my code works on PHP 4 try to delete all "public", "private", "protected" at the begin of all properties and functions

  3. Re: Getting an error   Reply   Report abuse  
Picture of CTAPbIu_MABP CTAPbIu_MABP - 2007-02-27 15:04:46 - In reply to message 1 from Laura Cotterman
special for you PHP4 version now available ;)