View Single Post
  #1   Spotlight this post!  
Unread 14-03-2012, 22:51
Dkt01's Avatar
Dkt01 Dkt01 is offline
Programming Mentor
AKA: David
FRC #1756 (Argos)
Team Role: Mentor
 
Join Date: Jan 2010
Rookie Year: 2009
Location: Peoria, Il
Posts: 145
Dkt01 will become famous soon enough
Extracting Data from FRC-Spy

Hi everyone,
I want to use the xml data from FRC-Spy to automatically update match results on our team website. My issue is I don't know how to extract the xml data from FRC-Spy. I know you should be able to add "xml=2" to the end of the address to get all the match results in xml, but I can't manage to get the actual information off the website. I'm using php with simple xml.
So far this is what I'm having trouble with:
PHP Code:
$allmatches simplexml_load_file("http://www.chiefdelphi.com/forums/frcspy.php?xml=2.xml"); 
This never actually loads the file so that I can use it. The server is running php 5.2.17.

Any suggestions or example code would be great, since I am pretty new to php.
Also, if I need to clarify anything, let me know.