I\'ve tried a lot of potential solutions, but none of them are working for me. The simplest one:
$file = file(\'list.html\'); array_pop($file);
You are only reading the file, you now need to write the file
Look into file_put_contents etc