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