Added lot of junk laying around on harvie.cz
[mirrors/Programs.git] / php / skripty / php_demo.php
1 <?php
2 echo("Special chars example\n<-Harvie 2oo7\n\n");
3 $tocse = "-\|/";
4
5 while(1) {
6
7 echo("INIT: ..........\x0d");
8 for($i=0;$i<11;$i++) {
9 usleep(100000);
10 echo("INIT: ");
11 for($x=$i;$x>0;$x--) echo("#");
12 echo("\x0d");
13 }
14
15 $tnum = rand(0,99);
16 echo("Find: ".($find = md5($tnum)).":??\n");
17 $i = 0;
18 while(1) {
19 $tnum = rand(0,99);
20 $test = md5($tnum);
21 echo("\x0d MD5: ".$test." ".$tocse[$i]." :$tnum ");
22 usleep(50000);
23 if($test == $find) { break; }
24 $i++;
25 if($i > 3) { $i = 0; }
26 }
27 echo("\x0d MD5: ".$test.":$tnum \n Found\x07!!!\n\n");
28
29 }
This page took 0.344185 seconds and 4 git commands to generate.