FUDforum
Fast Uncompromising Discussions. FUDforum will get your users talking.

Home » Imported messages » comp.lang.php » Load Data from XML url
Show: Today's Messages :: Polls :: Message Navigator
Return to the default flat view Create a new topic Submit Reply
Re: Load Data from XML url [message #183132 is a reply to message #183115] Thu, 10 October 2013 07:38 Go to previous messageGo to previous message
frank.catry is currently offline  frank.catry
Messages: 9
Registered: October 2013
Karma:
Junior Member
Thank you very much. Your script was not working at once so i do some changes and get it work in a few minutes.

<?php
$doc = new DOMDocument();
$doc->load("http://services.mobile.de/1.0.0/refdata/sites/GERMANY/classes/Car/makes");

$items = $doc->documentElement->getElementsByTagName("item");

foreach ($items as $item) {
$key=$item->getAttribute("key");
$description=$item->textContent;
echo "$key - $description<br>";
}

die(date('l jS \of F Y h:i:s A'));
?>
Maybe not so professional or fast as your solution but it works for me.
The values are only to load once a week into a database.
[Message index]
 
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Read Message
Previous Topic: glob patterns
Next Topic: how to change character to % character?
Goto Forum:
  

-=] Back to Top [=-
[ Syndicate this forum (XML) ] [ RSS ]

Current Time: Tue Nov 05 16:16:29 GMT 2024

Total time taken to generate the page: 0.05103 seconds