wtfsmd Posted December 8, 2007 Share Posted December 8, 2007 Hey guys im getting an error on my page and just can't seem to find what the problem is: parse error, unexpected T_NEW in ...... /inc/roster.inc.php on line 199 Code: <?php 188 while (!feof($fp)) { $html_data .= fgets($fp, 1024); } 189 fclose($fp); 190 } 191 } 192 return $html_data; 193 194 } 195 196 function attribs($node) { 197 $attribs = array(); 198 if(!$node) { throw new Exception("Unable to get node attributes; this likely means that we were unable to retrieve data for the entered realm/guild from the Armory. Please check your input and/or try again later."); } 199 foreach($node->attributes() as $key => $attrib) { $attribs[$key] = (string)$attrib; } 200 return $attribs; 201 } 202 } 203 204 class wow_guild{ 205 var $assignstr; 206 207 function update_char( $data ) { 208 global $cfg; 209 $data['name'] = mysql_real_escape_string($data['name']); 210 $data['server'] = mysql_real_escape_string( $cfg['plugin']['roster']['server'] ); ?> Lines 188 - 210 Quote Link to comment Share on other sites More sharing options...
revraz Posted December 8, 2007 Share Posted December 8, 2007 Make sure your { }'s all match. Quote Link to comment Share on other sites More sharing options...
wtfsmd Posted December 8, 2007 Author Share Posted December 8, 2007 i just double checked they are all matching. The } on line 202 may not look like its not matching but it goes with the one up on line 59. Quote Link to comment Share on other sites More sharing options...
revraz Posted December 8, 2007 Share Posted December 8, 2007 PHP 5? I dont think PHP4 uses THROW Quote Link to comment Share on other sites More sharing options...
wtfsmd Posted December 8, 2007 Author Share Posted December 8, 2007 Your right, what was i thinking. Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.