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
 
Start new topic
Odpowiedzi
AboutMe
post 7.11.2016, 23:43:15
Post #2





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

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


A sorry, chyba już za późna godzina na takie rzeczy smile.gif
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Wersja Lo-Fi Aktualny czas: 25.04.2024 - 17:29