散分!代码解读!
代码是这样的,那位高手帮忙解读一下!我要把它写成java程序!
<form name=form1 method=post>
<input type=hidden name=do value=yes>
手机号码:<input type=text name=phoneno size=30> <input type=submit value=确认>
</form>
<?
if(($do!="")and($phoneno!=""))
{
if(strlen($phoneno)<1){echo"输入的手机号太短了,能打吗?<br><br>";}
else {
$no=eregi_replace(" ","",$phoneno);
$no=eregi_replace("-","",$no);
//mobil:
$no=substr($no,-4,4);
$no=$no/80;
$no=explode(".",$no);
$no=$no[1];
$no="0.".$no;
$no=$no*80;
//end
if(file_exists($db)){$data=file($db);$count=count($data);}
for($i=0; $i<$count; $i++) {
$detail=explode("|",$data[$i]);
if(($no=="")and(strlen($phoneno)<=5)){$no=80;}
if($no==$detail[0]){
eval("\$found = eregi(\"吉\",\"$detail[2]\");");
if($found){$detail[2]="<font color=red>$detail[2]</font>";}
if($detail[1]==""){$detail[1]="此号码不在测算之列!<br><br>据说得到这种结果的人,具有非凡特质,以名人猛人居多,所以吉凶之数不需要再来论断了"; $detail[2]="变数";}else {$detail[1]=$detail[1];}
echo"<br><br>号码五行数理说明:号码 $phoneno 数理为 $detail[0] ,其暗示的信息:<br><br>$detail[1] 。($detail[2])<br><br>";
}