![]() |
![]() |
![]()
Post
#1
|
|
Grupa: Zarejestrowani Postów: 439 Pomógł: 0 Dołączył: 3.06.2010 Ostrzeżenie: (50%) ![]() ![]() |
Mam problem z utworzeniem zapytania dla obiektu query tak aby odczytał mi coś takiego ze źródła:
(...) temat:<strong>PerfectSport</strong> (...) samo znaleźienie strong nic mi nie daje bo jest ich wiele a mnie interesuje tylko w takim zestawieniu jak wyżej napisałem, jak utworzyć zapytanie dla $zm1 = $xp->query("?(IMG:style_emoticons/default/questionmark.gif) (IMG:style_emoticons/default/questionmark.gif) (IMG:style_emoticons/default/questionmark.gif) ?"); Mam taki kod: (...) $xml = new DOMDocument('1.0', 'UTF-8'); $xml->loadHTMLFile($url); $xml->preserveWhiteSpace = true; $xp = new domXPath($xml); $zm1 = $xp->query("//strong"); $zm2 = $xp->query("//span[@class='pole']"); (...) |
|
|
![]() ![]() |
![]() |
Aktualny czas: 16.10.2025 - 21:23 |