Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP][HTML] jak wstawić fragment strony?
komanch
post
Post #1





Grupa: Zarejestrowani
Postów: 24
Pomógł: 0
Dołączył: 17.08.2006

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


Chce na moją stronę wstawić fragment innej strony, ale tylko fragment, w moim przypadku chcę samą tabelę ze strony z zewnątrz.
Użyłem:
Kod
<iframe name="demo" src="http://hockey.powerplaymanager.com/pl/liga.html?data=a-ow-iv-28" width="530" height="300" frameborder="0" marginwidth="0" marginheight="0" scrolling="auto"></iframe>

Co moge zrobić żeby wyświetlał mi się tylko taki fragment strony który chcę? czyli np samą tabelę.

Ten post edytował komanch 23.02.2009, 19:45:20
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
komanch
post
Post #2





Grupa: Zarejestrowani
Postów: 24
Pomógł: 0
Dołączył: 17.08.2006

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


coś takiego?
chyba źle wstawiłem bo nie działa (IMG:http://forum.php.pl/style_emoticons/default/worriedsmiley.gif)
  1. <?php
  2. $curl = curl_init();
  3. curl_setopt($curl, CURLOPT_URL, "http://hockey.powerplaymanager.com/pl/liga.html?data=a-ow-iv-28");
  4. curl_setopt($curl, CURLOPT_RETURNTRANSFER, 1);
  5. $strona = curl_exec($curl);
  6. echo $strona;
  7. preg match all '/<table>[[:print:]]</table>/';
  8. ?>
Go to the top of the page
+Quote Post
DREEMus
post
Post #3





Grupa: Zarejestrowani
Postów: 286
Pomógł: 34
Dołączył: 4.09.2008
Skąd: Wrocław

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


Cytat(komanch @ 18.02.2009, 16:33:51 ) *
  1. <?php
  2. preg match all '/<table>[[:print:]]</table>/';
  3. ?>

A od kiedy funkcje piszemy bez _ (IMG:http://forum.php.pl/style_emoticons/default/questionmark.gif)
Go to the top of the page
+Quote Post

Posty w temacie


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

 



RSS Aktualny czas: 8.10.2025 - 20:54