These forums have been archived and are now read-only.
The new forums are live and can be found at https://forums.eveonline.com/
Did Phoebe break/change the API XML, or did I break my PHP ?
( ! ) Warning: SimpleXMLElement::__construct(): Entity: line 13: parser error : Input is not proper UTF-8, indicate encoding ! Bytes: 0xC8 0x6C 0x3E 0x32 in C:\EVEThings\wamp\www\importxml.php on line 15
( ! ) Warning: SimpleXMLElement::__construct(): in C:\EVEThings\wamp\www\importxml.php on line 15
( ! ) Warning: SimpleXMLElement::__construct(): Entity: line 14: parser error : Extra content at the end of the document in C:\EVEThings\wamp\www\importxml.php on line 15
-> ?php... mysql_connect...mysql_select_db... etc 12 echo "This is line 12";13 $data = file_get_contents("https://api.eveonline.com/corp/WalletTransactions.xml.aspx?keyID=1234&vCode=numbersandletters&characterID=5678&rowCount=5");14 echo "This is line 14";15 $xml = new SimpleXMLElement($data);16 echo "This is line 16";17 if ($xml === false)18 { die('Error parsing XML'); }19 20 echo "This is line 20";21 22 foreach ($xml -> result -> rowset-> row as $row)23 {24 $transactionDateTime = $row['transactionDateTime'];->...do the things to insert everything to the appropriate table..
@CCP_FoxFour // Technical Designer // Team Tech Co
Third-party developer? Check out the official developers site for dev blogs, resources, and more.
$data = file_get_contents("Https://api.eveonline.com/...etc$xml = new SimpleXMLElement($data);foreach ($xml -> result -> rowset-> row as $row) { (split up the returned rows into individual useful bits) (build $insertquery) $insert = mysql_query ($insertquery, $link) }
$data = utf8_encode(file_get_contents("https://api.eveonline.com/corp/WalletTransactions.xml.aspx?keyID=1234&vCode=numbersandletters&characterID=5678&rowCount=5"));
[Lotteries] New Eden Grand --{ LIVE }--
https://nexusdev.net/negrand/
( ! ) Warning: SimpleXMLElement::__construct(): Entity: line 14: parser error : Extra content at the end of the document in C:\EVEThings\wamp\www\importxml.php on line 15 ( ! ) Warning: SimpleXMLElement::__construct(): </eveapi>Â in C:\EVEThings\wamp\www\importxml.php on line 15 ( ! ) Warning: SimpleXMLElement::__construct(): ^ in C:\EVEThings\wamp\www\importxml.php on line 15 ( ! ) Fatal error: Uncaught exception 'Exception' with message 'String could not be parsed as XML' in C:\EVEThings\wamp\www\importxml.php on line 15 ( ! ) Exception: String could not be parsed as XML in C:\EVEThings\wamp\www\importxml.php on line 15
string '{?xml version='1.0' encoding='UTF-8'?}{eveapi version="2"} {currentTime}2014-11-07 15:18:39{/currentTime} {result} {rowset name="transactions" key="transactionID" columns="transactionDateTime,transactionID,quantity,typeName,typeID,price,clientID,clientName,characterID,characterName,stationID,stationName,transactionType,transactionFor,journalTransactionID,clientTypeID"} {row transactionDateTime="2014-11-07 15:03:37" transactionID="3667776459" quantity="2" typeName="Beta Reactor Control: S'... (length=2777)
Finds camping stations from the inside much easier. Designer of Yapeal for the Eve API. Check out the Yapeal PHP API Library thread.