Posted in PHP onJune 01, 2012
<?php $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) != '123456'){ $count--; if(!$count) goto error; goto start; } goto success; error: echo "Please try after 1 hour! https://3water.com"; goto out; success: echo "Logined!"; out: ?>
效果图:
分享一个PHP数据流应用的简单例子
声明:登载此文出于传递更多信息之目的,并不意味着赞同其观点或证实其描述。
Reply on: @reply_date@
@reply_contents@