Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> SimpleXML nie działa
AboutMe
post 7.11.2016, 17:10:50
Post #1





Grupa: Zarejestrowani
Postów: 261
Pomógł: 0
Dołączył: 24.02.2008

Ostrzeżenie: (0%)
-----


Dzień dobry smile.gif

Dlaczego poniższy kod nie działa?
  1. $url = "http://domena.com/1/feed.php?mode=topics_active";
  2. $xml = simplexml_load_file($url);
  3. for($i = 0; $i < 10; $i++){
  4. $published = $xml->feed->entry[$i]->published;
  5. $html = "$published<br>";
  6. }
  7. echo $html;


XML - http://pastebin.com/XEtZEfG8

Drugie pytanie czy jest możliwe wyświetlenie zawartości label=""?

Ten post edytował AboutMe 7.11.2016, 17:12:16
Go to the top of the page
+Quote Post

Posty w temacie


Reply to this topicStart new topic
1 Użytkowników czyta ten temat (1 Gości i 0 Anonimowych użytkowników)
0 Zarejestrowanych:

 



RSS Wersja Lo-Fi Aktualny czas: 27.04.2024 - 04:34