Advanced usage of while .? Php * $ ip127.0.0.1; if ($ _ SERVER [REMOTE_ADDR] $ ip) {header (location: xxx. php);} else {header (location: yyy. php);} functionlimitIp ($ ip) {if ($ _ SERVER [REMOTE_ADDR] $ ip) {header (loc /* $ Ip = "127.0.0.1 ";
If ($ _ SERVER ["REMOTE_ADDR"] = $ ip ){
Header ("location: xxx. php ");
} Else {
Header ("location: yyy. php ");
}
Function limitIp ($ ip ){
If ($ _ SERVER [REMOTE_ADDR] = $ ip ){
Header ("location: XXx. php ");
} Else {
Header ("location: YYY. php ");
}
}*/
/*
Echo"
";Echo"
Student Score
";$ I = 0;$ J = 0;While ($ I <1000 ){If ($ I % 10 = 0 ){If ($ j ++ % 2 = 0 ){$ Bgc = "# cccccc ";} Else {$ Bgc = "aaffaa ";}// Echo"
";Echo"
";}Echo"
$ I | ";If (++ $ I % 10 = 0 ){Echo"
";}}Echo"
";Echo"
Student Score
";$ I = 0;$ K = 0;While ($ I <100 ){If ($ I % 2 = 0 ){$ Bgc = "# cccccc ";} Else {$ Bgc = "# aaffaa ";}Echo"
";$ J = 0;While ($ j <10 ){ Echo"
$ K | ";$ J ++;$ K ++;}Echo"
";$ I ++;}Echo"
";
?>
Script
Var yuancolor = null;
Function show (obj ){
Yuancolor = obj. style. backgroundColor;
Obj. style. backgroundColor = "red ";
}
Function noshow (obj ){
Obj. style. backgroundColor = yuancolor;
}
Script
Http://www.bkjia.com/PHPjc/486549.htmlwww.bkjia.comtruehttp://www.bkjia.com/PHPjc/486549.htmlTechArticle? Php/* $ ip = 127.0.0.1; if ($ _ SERVER [REMOTE_ADDR] = $ ip) {header (location: xxx. php);} else {header (location: yyy. php);} function limitIp ($ ip) {if ($ _ SERVER [REMOTE_ADDR] === ip) {header (loc...