Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> Pobranie strony internetowej z poziomu php, jak to ugryźć :)
L_Devil
post 20.10.2006, 17:42:23
Post #1





Grupa: Zarejestrowani
Postów: 195
Pomógł: 0
Dołączył: 13.04.2004
Skąd: Łódź

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


Witam!

Chciałbym napisać prosty system katalogów stron internetowych. User podawałby adres swojej strony, a mój skrypt odwiedzałby go, spisywał META, itp. O ile potafię rozbić stronę ukrytą w zmiennej na konkretne znaczniki, odczytać meta i a href'y, o tyle problemem jest dostanie tej strony.

Moje pytanie brzmi: Jak otworzyć stronę internetową przez php i dostać jej zawartość do zmiennej? Słyszałem, że może do tego posłużyć fsockopen...

Z góry dzięki za wszelką pomoc winksmiley.jpg


--------------------
Językiem którym najlepiej operują wszyscy programiści są przekleństwa.
Go to the top of the page
+Quote Post
 
Start new topic
Odpowiedzi
L_Devil
post 21.10.2006, 16:36:25
Post #2





Grupa: Zarejestrowani
Postów: 195
Pomógł: 0
Dołączył: 13.04.2004
Skąd: Łódź

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


Testuję to na własnym Apachu... wywołuję to tylko raz - po czym w logach apacha znajduję:
Kod
localhost - - [21/Oct/2006:17:33:34 +0200] "GET /testpage/test_page HTTP/1.0" 200 537
localhost - - [21/Oct/2006:17:33:33 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:33 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:32 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:32 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:33 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:31 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:31 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:29 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:32 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:31 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:27 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:31 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:26 +0200] "GET /testpage/index.php HTTP/1.1" 200 8341
localhost - - [21/Oct/2006:17:33:29 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:27 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:27 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:30 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:30 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:30 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:28 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:32 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:29 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:29 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:27 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:28 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:30 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:28 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
localhost - - [21/Oct/2006:17:33:28 +0200] "GET /testpage/test_page HTTP/1.0" 200 20
O co tu chodzi?

(Po uruchomieniu strony, mięli strasznie długo, komputer zaczyna ostro pracować, itp.)

Ten post edytował L_Devil 21.10.2006, 16:37:07


--------------------
Językiem którym najlepiej operują wszyscy programiści są przekleństwa.
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 Wersja Lo-Fi Aktualny czas: 14.08.2025 - 18:55