Commit | Line | Data |
---|---|---|
1 | #!/usr/bin/php | |
2 | <?php | |
3 | $fp = fopen("http://www.root.cz/", "r"); | |
4 | ||
5 | while($line = fgets($fp)) { | |
6 | if(ereg("<h3><a href=\"/clanky/", $line)) { | |
7 | $line = explode("<h3><a href=\"/clanky/", $line); | |
8 | $line = explode("/\">", $line[1]); | |
9 | echo($line[0]."\n"); | |
10 | } | |
11 | } |