45 lines
416 B
PHP
45 lines
416 B
PHP
<?php
|
|
|
|
|
|
$url = "http://localhost/";
|
|
|
|
|
|
|
|
|
|
|
|
|
|
function getrand($max) {
|
|
srand ((double)microtime()*1000000);
|
|
$randval = rand();
|
|
$aa = rand(1,$max);
|
|
return $aa;
|
|
}
|
|
|
|
function getcnt($url) {
|
|
ini_set("allow_url_fopen", "1");
|
|
$fp = fopen($url,"r");
|
|
while(!feof($fp)){ $str.= fgets($fp,500); }
|
|
fclose($fp);
|
|
$t = explode("momentan",$str);
|
|
$s = explode("Einträge",$t[1]);
|
|
return trim(strip_tags($s[0]));
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
?>
|