RE: [PHP] Deleting a string from a text file

2001-07-03 Thread ..s.c.o.t.t..
you could also do it this way: $ofile = "file.txt";// original file $nfile = "new.file.txt";// new file $string = "original"; // what needs to be replaced $replace = "replacement"; // what to replace it with $data = file($ofile); // original file's d

Re: [PHP] Deleting a string from a text file

2001-07-03 Thread David Robley
On Tue, 3 Jul 2001 18:04, Stevenson, Christopher wrote: > Hello, folks. I'm relatively new to this. > > Would anyone be willing to give me some code that will delete the first > occurrence of a string from a text file? > > Thanks, > Chris. Hello Chris - when did you guys discover PHP! Grab the

[PHP] Deleting a string from a text file

2001-07-03 Thread Stevenson, Christopher
Hello, folks. I'm relatively new to this. Would anyone be willing to give me some code that will delete the first occurrence of a string from a text file? Thanks, Chris. -- PHP General Mailing List (http://www.php.net/) To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: