Commit | Line | Data |
---|---|---|
57c4ea18 H |
1 | <?php\r |
2 | \r | |
3 | $adv = "";\r | |
4 | $fp = fopen("$adv.txt", "w+");\r | |
5 | $pos = "0";\r | |
6 | \r | |
7 | while( strpos($line, "File not found") == 0 ) {\r | |
8 | $line = trim( implode(" ", file("http://irc.honemsetodouc.com/koucka/adventure/$adv/$pos.txt")) );\r | |
9 | //$line = $str_replace("", "", $line);\r | |
10 | fwrite($fp, $line."\r\n");\r | |
11 | echo ($line."\r\n");\r | |
12 | $pos++;\r | |
13 | }\r | |
14 | \r | |
15 | fclose($fp);\r |