Help - Search - Members - Calendar
Full Version: Extracting Data From External Xml
Zymic Webmaster Forums > Web Design & Development > Server Side Scripting > PHP
EVE Rage Innovations
Hi Guys,

Thanks for taking the time to look over my query.

I am designing a website for my industrial corporation in EVE-Online. EVE has an in-game-browser(IGB). This sends headers when a site has been trusted (This is not secure enough for auth). I plan to take these headers to allow people a quicker log in (think of it as a 'remember my email address' type thing).

IGB sends headers, my site gets headers, checks the CharacterID against my current DB, if found, requests password, once accepted, VIOLA! If NOT found, then a registration process takes place.

I'm fairly comfortable with how to go about things up to here... (although I might come back for questions later)

But then...
The site will need to pull data off a secure, remote XML for certain requests.
An example of which is
"https://api.eveonline.com/eve/CharacterInfo...cterID=92156456"
That's me smile.gif

I would like to then take the data, and check it. For example, if <corporationID>312619810</corporationID> has changed since my last log in, then I would be denied access. Can't have people who've quit the corporation in anymore.

I originally tried

CODE
<?php
$xml = simplexml_load_file("https://api.eveonline.com/eve/CharacterInfo.xml.aspx?CharacterID=92156456");

foreach($xml->result->children() as $child)

foreach($child->attributes() as $a => $b)
?>


which returned

QUOTE
Warning: simplexml_load_file() [function.simplexml-load-file]: I/O warning : failed to load external entity "https://api.eveonline.com/eve/CharacterInfo.xml.aspx?CharacterID=92156456" in /www/zymichost.com/s/h/i/shipyard/htdocs/getit.php on line 2

Fatal error: Call to a member function children() on a non-object in /www/zymichost.com/s/h/i/shipyard/htdocs/getit.php on line 4


So I then attempted to cURL to parse the xml, and save it. But it seems cURL is not supported.

I have since found out that Zymic doesn't allow remote connections.

Any suggestions?

Thanks again for taking the time to read this,

Nerida Palina
Official Windbag and Inter-web-face Designer
RAGE Innovations
ssfdre38
as stated on the IRC, all remote connections are disable on Zymic
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.
Invision Power Board © 2001-2013 Invision Power Services, Inc.