Copy CodeThe code is as follows:
$str = File ("http://tq.tom.com/china/index.html");
$count = count ($STR);
for ($i =0; $i < $count; $i + +) {
$file. = $str [$i];
}
$TOMTQ = Explode ("
", $file); $TOMTQ = Explode ("
", $TOMTQ [1]);
$TOMTQ = $TOMTQ [0];
$TOMTQ Tom Weather Thief
?>
The weather code came in.
<meta http-equiv= "Content-type" c><title> weather forecast </title><style type= "TEXT/CSS" ><!--td { font-size:12px; }--></style><body topmargin= "0" leftmargin= "0" ><table width= "" height= "the" border= "0" cellpadding= "0" cellspacing= "0" ><tr><td align= "center" valign= "middle" ><table width= "139" border= "0" cellspacing= "0" cellpadding= "0" ><tr><td width= "@" rowspan= "2" align= "Center" ></td><td Width= "align=" "Center" ></td></tr><tr><td align= "center" ></td></tr>< /table></td></tr></table></p>
[Ctrl + A full selection Note: If you need to introduce external JS need to refresh to execute]
The above introduces the PHP code of the personal webmaster system to do Web page commonly used PHP code, including the content of the PHP code, I hope that the PHP tutorial interested in a friend helpful.