Created
June 14, 2011 20:30
-
-
Save Marax/1025798 to your computer and use it in GitHub Desktop.
FIM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$lepsi = 0; | |
$stejny = 0; | |
$s = 0; | |
for($s=0;$s<=264;$s +=33){ | |
$soubor = file_get_contents("http://isit.uhk.cz/info/pohovory/public/Poradi.asp?skip=".$s."&obor=ai3&termin=1&rozhodnuti=?"); | |
$hrefy = explode('<a href="Vysledky.asp?cislo=',$soubor); | |
for($h = 1; $h<=66;$h+=2){ | |
$linkc = explode('">',$hrefy[$h]); | |
$link = "http://isit.uhk.cz/info/pohovory/public/Vysledky.asp?cislo=".$linkc[0]; | |
$insoubor = file_get_contents($link); | |
$body = explode('<td align="center"><b>',$insoubor); | |
$bodymat = explode("</b>",$body[1]); | |
$bodyang = explode("</b>",$body[2]); | |
//echo($bodymat[0]."AAA:".$bodyang[0]); | |
$soucet = $bodymat[0]+$bodyang[0]; | |
if($soucet > 60){ | |
++$lepsi; | |
} | |
if($soucet == 60){ | |
++$stejny; | |
} | |
$soucet = 0; | |
$bodymat = ''; | |
$bodyang = ''; | |
} | |
echo("Lepsich:".$lepsi."Stejnych:".$stejny."S:".$s); | |
} | |
echo("Lepsich:".$lepsi."Stejnych:".$stejny); | |
?> |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment