sairfan1 Posted March 4, 2010 Share Posted March 4, 2010 Parse error: syntax error, unexpected T_STRING, expecting T_OLD_FUNCTION or T_FUNCTION or T_VAR or '}' in \\nawinfs03\home\users\web\b1812\rh.optimedia\test\table.php on line 15class clsobject{ /*Local Variable*/ protected $str='2'; //this is line 15 where error is indicated protected $log='1'; protected $errmsg=''; protected $errcount=0; //as on.... } Link to comment Share on other sites More sharing options...
justsomeguy Posted March 4, 2010 Share Posted March 4, 2010 Is your server running PHP4 or PHP5? That syntax won't work in PHP4. Link to comment Share on other sites More sharing options...
skaterdav85 Posted March 4, 2010 Share Posted March 4, 2010 its probably something before line 15 then, because i ran that code and i didnt get any errors. do you have anything above? Link to comment Share on other sites More sharing options...
sairfan1 Posted March 5, 2010 Author Share Posted March 5, 2010 thankx prob solved, there was an error before calling this class, but compiler pointed to inside the class which confused me. Is your server running PHP4 or PHP5? That syntax won't work in PHP4. Link to comment Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.