Share a simple example of a PHP Data stream application. Copy the code as follows :? Php $ count5; start: if ($ count5) echoYoucantry {$ count} time,; echoPutPassword:; $ handlefopen (php: stdin, r); $ linefgets ($ handl
The code is as follows:
$ Count = 5;
Start:
If ($ count <5) echo "You can try {$ count} time ,";
Echo "Put Password :";
$ Handle = fopen ("php: // stdin", "r ");
$ Line = fgets ($ handle );
If (trim ($ line )! = '000000 '){
$ Count --;
If (! $ Count) goto error;
Goto start;
}
Goto success;
Error:
Echo "Please try after 1 hour! Http://www.jb51.net ";
Goto out;
Success:
Echo "Logined! ";
Out:
?>
:
The http://www.bkjia.com/PHPjc/325419.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/325419.htmlTechArticle code is as follows :? Php $ count = 5; start: if ($ count 5) echo "You can try {$ count} time,"; echo "Put Password :"; $ handle = fopen ("php: // stdin", "r"); $ line = fgets ($ handl...