edit2// sry, this has been solved. thanks =p
Code: Select all
function read($file,$startNo=0) {
global $xf_root_path,$xf_config_global_extention,$xf_config_postsystem_posts_per_page,$xf_dir_postlogs;
$filename = $file.$xf_config_global_extention;
$fullpath = $xf_root_path.$xf_dir_postlogs.$filename;
$linesx = file($fullpath);
$lines = array_reverse($linesx);
while (list($key,$value) = each($lines)) {
if (($key >= $startNo) && ($key < ($startNo+$xf_config_postsystem_posts_per_page))) {
$output[$key] .= $value;
}
}
return $output;
}-thanks