Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP] zrobilem file_get_contents a cos nie dziala
damianm2007
post
Post #1





Grupa: Zarejestrowani
Postów: 83
Pomógł: 0
Dołączył: 5.05.2008

Ostrzeżenie: (20%)
X----


witajcie

zrobilem tak

  1. <?php
  2.  
  3. $jgor = file_get_contents('http://wt.kk.jgora.pl/');
  4.  
  5.  
  6.  
  7. $title = preg_match_all('@<ul class="news">\<h3 class="news"><a class="news" href="([^"]*)"\>@', $jgor, $wynik);
  8.  
  9. print_r($wynik);
  10.  
  11. ?>


no ale nic nie pobiera.. co jest zle ? bo nie wiem ;/
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
Webmasterr
post
Post #2





Grupa: Zarejestrowani
Postów: 71
Pomógł: 5
Dołączył: 7.08.2010

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


Cytat(damianm2007 @ 18.11.2010, 16:38:26 ) *
witajcie

zrobilem tak

  1. <?php
  2.  
  3. $jgor = file_get_contents('http://wt.kk.jgora.pl/');
  4.  
  5.  
  6.  
  7. $wynik = preg_match_all('@<ul class="news">\<h3 class="news"><a class="news" href="([^"]*)"\>@', $jgor); /* Usunięte jest ', $wynik' i $title zmieniona jest na $wynik (na początku) */
  8.  
  9. print_r($wynik);
  10.  
  11. ?>


no ale nic nie pobiera.. co jest zle ? bo nie wiem ;/


Ten post edytował Webmasterr 18.11.2010, 17:53:10
Go to the top of the page
+Quote Post
damianm2007
post
Post #3





Grupa: Zarejestrowani
Postów: 83
Pomógł: 0
Dołączył: 5.05.2008

Ostrzeżenie: (20%)
X----


Warning: preg_match_all() expects at least 3 parameters, 2 given in pobieranie.php on line 9

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: 6.10.2025 - 12:03