Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Pobieranie danych ze strony, Help
marcinvx
post
Post #1





Grupa: Zarejestrowani
Postów: 19
Pomógł: 0
Dołączył: 11.02.2011

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


  1. <table cellpadding="0" cellspacing="0" align="center" rules="all">
  2. <tr>
  3. <td width="320"><b>Prezenter:</b> <span class="stream_genre"></span></td>
  4.  
  5. <td rowspan="2" width="80" height="36" align="center"><b>Słuchaczy:<br /><font size="3"><span class="stream_slucha"></span></font></b></td>
  6. </tr>
  7. <tr>
  8. <td><b>Audycja:</b> <span class="stream_title">B-Day ^^</span></td>
  9. </tr>
  10. </table>

Pobieranie danych pomiędzy <td><b>Audycja:</b> <span class="stream_title"> a </span></td> Czyli chciałbym aby na stronie wyświetlało się B-Day Party ^^
Jak zrobić ?
Ja nic nie mogę znaleźć. ;/
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
jaslanin
post
Post #2





Grupa: Zarejestrowani
Postów: 511
Pomógł: 143
Dołączył: 13.03.2010
Skąd: Jasło

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


  1. <pre>
  2. <?
  3.  
  4. $html = '
  5. <table cellpadding="0" cellspacing="0" align="center" rules="all">
  6. <tr>
  7. <td width="320"><b>Prezenter:</b> <span class="stream_genre"></span></td>
  8.  
  9. <td rowspan="2" width="80" height="36" align="center"><b>Słuchaczy:<br /><font size="3"><span class="stream_slucha"></span></font></b></td>
  10. </tr>
  11. <tr>
  12. <td><b>Audycja:</b> <span class="stream_title">B-Day ^^</span></td>
  13. </tr>
  14. </table>
  15. ';
  16.  
  17. preg_match_all("#Audycja.*stream_title.*>(.+)<#isU", $html, $matchesarray);
  18.  
  19. print_r($matchesarray);
  20.  
  21. ?>
  22. </pre>
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 Aktualny czas: 15.10.2025 - 20:15