Jump to content

parse error, unexpected T_NEW


wtfsmd

Recommended Posts

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

Link to comment
https://forums.phpfreaks.com/topic/80801-parse-error-unexpected-t_new/
Share on other sites

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.