Witaj Gościu! ( Zaloguj | Rejestruj )

Forum PHP.pl

> [PHP]Ściągnięcie kodu html z innej strony
tinware
post
Post #1





Grupa: Zarejestrowani
Postów: 83
Pomógł: 0
Dołączył: 23.08.2009
Skąd: Wołomin

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


Witajcie,

Mam problem ze ściągnięciem kodu html ze strony shoutcast'a. Jego adres to: http://play.radioftb.net:8000/index.html
Strona może mieć problem z wyświetleniem w przeglądarkach innych niż mozilla i explorer

Oto kod:
Kod
<?php

    print( htmlspecialchars( file_get_contents( 'http://play.radioftb.net:8000/index.html' ) ) );

?>


... a oto błąd:

Cytat
Warning: file_get_contents(http://play.radioftb.net:8000/index.html) [function.file-get-contents]: failed to open stream: HTTP request failed! ICY 404 Resource Not Found in C:\Program Files\EasyPHP-5.3.8.1\www\player_pack3\stat.php on line 3


Skrypt działa mi na normalnych stronach php itd, ale z adresem http://play.radioftb.net:8000/index.html nie może sobie poradzić...
Jaka przyczyna, jakieś sugestie?
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: 16.10.2025 - 10:05