分享一个PHP数据流应用的简单例子_php实例
程序员文章站
2022-05-15 11:49:12
...
复制代码 代码如下:
$count = 5;
start:
if($count echo "Put Password: ";
$handle = fopen ("php://stdin","r");
$line = fgets($handle);
if(trim($line) != '123456'){
$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:
?>
效果图: