I am making a simple little script that will remove an articles data file, and the links to it. The links to the article are in a simple, flat text file, and I need to delete the appropriate line of HTML so it doesn't link to the article anymore.
I have tried using 'ereg_replace' for the entire line, but for some unknown reason it failed to clear any line.
If you could give me a suggestion on how to do this, that would be great. I have asked around among some of my friends who know a quite a bit about PHP, but still have not got it working.
(The list file is sorted alphabetically, and each line begins with a code like this: <!-- geforce3 -->)