Skip to content

Instantly share code, notes, and snippets.

@Marax
Created June 14, 2011 20:30
Show Gist options
  • Save Marax/1025798 to your computer and use it in GitHub Desktop.
Save Marax/1025798 to your computer and use it in GitHub Desktop.
FIM
<?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