I am trying to convert a bunch of pages generated off of xml data from another site to be more dynamic. Currently they are all hard coded with each having thier own pages in their own directories, very ineffecient, especially when I need to add new ones. What I want to do is pass the name of the xml file in the url like so:
http://www.mydomain.com/stats/index.php?guildnum=1200
That part is easy enough to get work working, but now to pull said xml file, I am currently trying THIS code:
Line 2 $guildurl = $guildnum.".xml";
Line 3 $url = "http://www.camelotherald.com/guilds/Lancelot/" . $guildurl .;
$data = implode('',file($url,''));
$array = xmlize($data);
But I get THIS error when executing:
Parse error: parse error in /usr/home/tigur/public_html/mydomain/stats/charinfo.php on line 3
I've tried as many different ways as I can find examples to include the variable as part of the url that I open but with no luck. Any ideas to help me out?