I'm back folks Sorry to be such a pain in the butt grr.
Here's my question.
I want to open a flat text file, read the contents and based on user defined input via a form remove a portion of the contents of that file, then write out the file with the removed contents. I've tried various permutations of str_replace and ereg_replace without success. I think the problem lies in the fact that what I'm trying to remove is not a string, but what could be considered several strings.
It boils down to trying to open /etc/named.conf on a unix machine and removing something like say the following block of text.
zone "blah.net" {
type master;
notify yes;
file "blah.net";
};
Any ideas would be greatly appreciated. Again I apologize for coming here with the "dumb" questions