Introduction: This is a detailed page of php.net news interception. It introduces PHP, related knowledge, skills, experience, and some PHP source code.
Class = 'pingjiaf' frameborder = '0' src = 'HTTP: // biancheng.dnbc?info/pingjia.php? Id = 323420 'rolling = 'no'>
<?
// Modify the following variables by yourself.
$ Newsnum = 7;
$ Space = 20;
$ Width = 400;
$ Headclass = "class5 ";
$ Lowerclass = "class6 ";
// Variable setting ends.
Print "<HTML>
$ Opened = $ QUERY_STRING;
If ($ opened = "") {$ opened = "-1 ";}
Print "<Table> <tr> <TD class = class5> <a target = _ blank href = http://www.php.net> www.php.net </a> </TD> </tr> ";
$ File = file ('HTTP: // www.php.net ');
$ Where = "";
$ A = 0;
While ($ A <count ($ file )){
$ File [$ A] = chop ($ file [$ A]);
If ($ file [$ A] = "<! -- Http://www.php.net/--> "){
$ Where = $;
Break 1;
}
$ A ++;
}
$ File = file ('HTTP: // www.php.net ');
$ A = $ where + 1;
$ B = 0;
While ($ B <$ newsnum ){
If (substr ($ file [$ A], 0, 4) = "
$ From = $;
$ To = $;
}
If ($ to = $ A & $ from! = ""){
$ C = $ from;
If ($ B ==$ opened ){
While ($ C <$ ){
If (substr ($ file [$ C], 0, 9) = "
$ File [$ C] = "";
}
$ File [$ C] = eregi_replace ("src =" "," src = "http://www.php.net/", $ file [$ C]);
$ File [$ C] = eregi_replace ("href =" "," href = "http://www.php.net/", $ file [$ C]);
$ File [$ C] = eregi_replace ("
$ File [$ C] = eregi_replace ("
Print $ file [$ C];
$ C ++;
}
} Else {
If (substr ($ file [$ C], 0, 9) = "
$ File [$ C] = "";
}
$ File [$ C] = eregi_replace ("src =" "," src = "http://www.php.net/", $ file [$ C]);
$ File [$ C] = eregi_replace ("href =" "," href = "http://www.php.net/", $ file [$ C]);
$ File [$ C] = eregi_replace ("
$ File [$ C] = eregi_replace ("
Print $ file [$ C];
}
$ B ++;
}
$ A ++;
}
Print "</table> ";
Print "</body>
?>
More articles on "php.net news interception"
Love J2EE follow Java Michael Jackson video station JSON online tools
Http://biancheng.dnbcw.info/php/323420.html pageno: 16.