Autor | Zpráva | ||
---|---|---|---|
hasha Profil * |
#1 · Zasláno: 29. 2. 2008, 16:06:37
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 |
#2 · Zasláno: 29. 2. 2008, 16:11:52
k tomuto funkce "fopen()" neslouží.
|
||
hasha Profil * |
#3 · Zasláno: 29. 2. 2008, 16:19:14
a muzete mi nekdo poradit jakou funkci vubec muzu dostat ten zdrojak do nejaky promenny??
|
||
Měsíček Profil |
#4 · Zasláno: 29. 2. 2008, 16:32:37
Třeba file_get_contents.
|
||
hasha Profil * |
#5 · Zasláno: 29. 2. 2008, 16:36:26
to mi hazi uplne stejnou chybu jako fopen...
|
||
Alphard Profil |
#6 · Zasláno: 29. 2. 2008, 16:40:09
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 * |
#7 · Zasláno: 29. 2. 2008, 16:40:49
jj to muzu... tak diky zkusim to
|
||
Časová prodleva: 16 let
|
0