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
Share on other sites

This thread is more than a year old. Please don't revive it unless you have something important to add.

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Restore formatting

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • 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.