I've been working on this php script for the last day, and for some reason, it keeps giving me an unexpected T_STRING error on line 40. Probably something stupid and simple, but can anyone see what's wrong with the code:\[code\]<?phprequire_once('../../wp-config.php');require_once('../../wp-includes/wp-db.php');require_once('../../wp-includes/pluggable.php');global $current_user;get_currentuserinfo();$file = "../youtube$current_user->id.xml";$file2= "../$current_user->id.xml";$i = 0;$exists = file_exists($file);if (!$exists == "1"){return("");}$exists2 = file_exists($file2);if (!$exists2 == "1"){return("");}$dom = new DOMDocument();$loadfile = $dom->load($file);$rsslink = $dom->getElementsByTagName("rsslink");$list = array();foreach ($rsslink as $item){ array_push($list, $item->nodeValue); }$re = count($list) - 1;$le = $list[$re];$rom = new DOMDocument(); // the problem, L 40$rom->load($le);$tags = $rom->getElementsByTagName('item'); $count = $tags->length; $xml = simplexml_load_file($le);$titles = array();$links = array();$i = 0;for ($i=0; $i<=$count-1; $i++){$title = $xml->channel->item[$i]->title;$link = $xml->channel->item[$i]->link;$link = preg_replace('/&(.*)/','',$link);array_push($titles, $title);array_push($links, $link);}for ($i=0; $i<=$count-1; $i++) {$fom = new DOMDocument();$fom->formatOutput = true;$fom->preserveWhiteSpace = false;$fom->load($file);$channel = $fom->getElementsByTagName('channel');foreach ($channel as $channels) {$item1 = $fom->createElement('item');$title1 = $fom->createElement('title', $titles[$i]);$content1 = $fom->createElement('media:content'); $conatt1 = $fom->createAttribute('url');$conatt1->value = http://stackoverflow.com/questions/15733525/$links[$i];$channels->appendChild($item1);$item1->appendChild($title1); $item1->appendChild($content1); $content1->appendChild($conatt1);$fom->formatOutput = true;$fom->preserveWhiteSpace = false;$fom->save($file2);}}?>\[/code\]