Use File that will get the entire file than from there explode it into an array
$array = explode("\n",$file);
from there do a loop of each line of course you will need to explode it again like so
$newfile = ''; //stop errors
for ($i=0;$i<=(count($array)-1);$i++) {
//seperate ip and timestamp
$sep=explode(";",$array[$i]);
if ($sep['1']<=(time()-(60*15)) {
///dont add into new array
} else {
$newfile .= $array[$i]
}
}
Its not correct so it will need some fixing, but its a start