[PHP] Removing lines from a document. (4)

1 Name: Sakurina 2005-09-20 01:53 ID:Heaven

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.

2 Name: #!usr/bin/anon 2005-09-20 05:40 ID:Heaven

It's evil, but there's this thread for PHP:
http://4-ch.net/code/kareha.pl/1120533289

3 Name: !WAHa.06x36 2005-09-20 12:14 ID:Heaven

>>1

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?

4 Name: #!usr/bin/anon 2005-09-21 14:13 ID:vKzbODka

system("grep -v") \(`-')/

This thread has been closed. You cannot post in this thread any longer.