Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Pobranie treści innej strony
-ordon-
post
Post #1





Goście







Dzień dobry.

Zwracam się z prośbą o pomoc w trzy liniowym kodzie. Siedzę już nad tym od przedpołudnia masa przeczytanych poradników manual, forum php.pl i dalej nie wiem jak naprawić usterkę.

  1. <?php
  2. $a = file_get_contents("http://strona.pl/str.html");
  3. preg_match_all('<b id="info">(.*)</b>', $a, $b);
  4. ?>


var_dump zwraca mi wartość NULL a błędy to błędy jakie otrzymuje:
Cytat
Warning: file_get_contents() [function.file-get-contents]: URL file-access is disabled in the server configuration in xxxx on line 2

Warning: file_get_contents(http://strona.pl/str.html) [function.file-get-contents]: failed to open stream: no suitable wrapper could be found in xxxx on line 2

Warning: preg_match_all() [function.preg-match-all]: Unknown modifier '(' in xxxx on line 3



strona.pl... to tylko taki podkład.
Go to the top of the page
+Quote Post

Posty w temacie
- ordon   [PHP]Pobranie treści innej strony   7.05.2011, 16:23:24
- - wookieb   Tzn, że twój serwer zablokował pobieranie innych s...   7.05.2011, 17:16:14
- - lobopol   Użyj curla   7.05.2011, 17:20:00


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: 2.10.2025 - 05:11