请教各位大虾一个小问题!!!急!!!
小弟有一段PHP小代码
<?php
$filter = '620107';
$handle = fopen("today_6201.xd", "r");
$total = 0;
if ($handle) {
while (!feof($handle)) {
$argn = fgets($handle, 4096);
$p = explode("|", trim($argn));
if (empty($filter) || $p[0] == $filter) {
$total += $p[5] > 0 ? $p[8] : (0 + $p[8]);
}
}
fclose($handle);
}
echo "\t", $total, "\n";
?>
现在小弟想在一个HTML主页中的一个位置上直接显示这段PHP的运行结果请问各位大虾小虾如何实现!!!!!!