do you know what lines you need to remove:
like the line #, or
are the lines equal to something:
like remove lines that contain "!@#"?
You will probably need some kinda delimitor to remove them.
$file_name = "my_file.txt";
$file = fopen($file_name, 'r');
foreach($file as $new)
{
if($new == '!@#'){}
else{
$new_file = $new_file."<br>".new;
}
}
something like that should work.