Autor | Zpráva | ||
---|---|---|---|
General Profil * |
#1 · Zasláno: 26. 5. 2009, 14:53:25
Čus. Neporadil by mi někdo pls jaktože mi tenhle script hází chybu ?
<form action="index.php" method="post"> URL adresa stránky: <input name = "url" value = "" size = "22" maxlength = "250"> <input type = "submit" value = "Zpracovat výsledek"> </form> <?php $url = $_POST["url"]; if ($url != ""){ function hlavni(){ $html_string = file_get_contents($url); $odkaz_match = '.*<a.href="http://www.seznam.cz">.*'; preg_match_all($odkaz_match, $html_string, $href_matches); print_r($href_matches[1]); } hlavni(); } elseif ($url == ""){ } elseif ($url == " "){ echo("Musíte zadat nějakou URL adresu !"); } else{ echo("Chyba ve scriptu !"); } ?> Vypisuje Warning: preg_match_all() [function.preg-match-all]: Unknown modifier 'h' in /home/free/ic.cz/w/w3surf/root/www/index.php on line 13 |
||
tiso Profil |
#2 · Zasláno: 26. 5. 2009, 15:15:24
General - ako delimiter máš zvolenú bodku, tak ju tak interpretuje hneď za <a
|
||
Časová prodleva: 15 let
|
0