Autor Zpráva
hasha
Profil *
ahoj lidi, potrebuju z cizich stranek na sve dostavat urcitou cast. Cetl jsem neco o parsovani html apod. ale me vubec nejde nacist dana stranka.
Zacatek mam takhle:
if ($handle = fopen("http://martin-hasek.eu/literacy.html", "r")) {
$content = "";
while (!feof($handle)) {
$part = fread($handle,1024);
$content .= $part;
}

fclose($handle);
echo $content;
}

ale nepusti me to hned pres ten open.....

takovato chyba:
Warning: fopen() [function.fopen.php]: URL file-access is disabled in the server configuration in /home/e-arbitrage.eu/e-arbitrage.eu/testrss.php on line 12

Warning: fopen(http://martin-hasek.eu/literacy.html) [function.fopen.php]: failed to open stream: no suitable wrapper could be found in /home/e-arbitrage.eu/e-arbitrage.eu/testrss.php on line 12

mam podezreni ze je chyba na strane serveru...
Diky za rady.
Měsíček
Profil
k tomuto funkce "fopen()" neslouží.
hasha
Profil *
a muzete mi nekdo poradit jakou funkci vubec muzu dostat ten zdrojak do nejaky promenny??
Měsíček
Profil
Třeba file_get_contents.
hasha
Profil *
to mi hazi uplne stejnou chybu jako fopen...
Alphard
Profil
není to ani tak chaba serveru jako spíše nastavení
jestli můžeš používat .htaccess, vlož do něj: php_flag allow_url_fopen on
hasha
Profil *
jj to muzu... tak diky zkusim to

Vaše odpověď

Mohlo by se hodit


Prosím používejte diakritiku a interpunkci.

Ochrana proti spamu. Napište prosím číslo dvě-sta čtyřicet-sedm:

0