So I need a PHP function to remove lines from a file that was opened via fopen, but I'm out of ideas as to how I can do this... Anybody has any ideas? Thanks.
It's evil, but there's this thread for PHP:
http://4-ch.net/code/kareha.pl/1120533289
Read the lines one by one, check if they should be disacarded or not, write them to another file, close all files, delete the orignal, and rename the new one?
system("grep -v") \(`-')/