<div class="codetitle"> <span><a style="CURSOR: pointer" data="7094" class="copybut" id="copybut7094" onclick="doCopy('code7094')"><u>复制代码</u></a></span>代码如下:</div> <div class="codebody" id="code7094"> <br><?php <BR>$count = 5; <br>start: <br>if($count echo“输入密码:”; <br>$handle = fopen("php://stdin","r"); <br>$line = fgets($handle); <br>if(trim($line) != '123456'){ <br>$count--; <br>if(!$count) 转到错误; <br>转到开始; <br>} <br>走向成功; <br>错误:<br>echo "请1小时后尝试!http://www.jb51.net"; <br>转到出去; <br>成功:<br>回显“已登录!”; <br>输出:<br>?> <br> </div> <br>效果图:<br><img src="http://files.jb51.net/file_images/article/201206/201206012252162.png" border="0" alt="分享一个PHP数据流应用的简单例子_php实例" >