04 |
function getPageTotal($path){ |
06 |
if (!$fp = @fopen($path, "r" )) { |
07 |
$error = "打开文件{$path}失败" ; |
13 |
$line = fgets($fp,255); |
14 |
if (preg_match( '/\/Count [0-9]+/' , $line, $matches)){ |
15 |
preg_match( '/[0-9]+/' ,$matches[0], $matches2); |
16 |
if ($max<$matches2[0]) $max=$matches2[0]; |
|