<?php
//
// Load a text file, but remove the last X amount of lines
//
function end_file
($filename,
$lines);
{
$contents =
file($filename);
$i =
count($contents);
$c =
$i-
$lines;
while ($c <=
$i)
{
unset($contents[$c]);
$c++;
}
$contents =
implode("",
$contents);
return($contents);
}
?>