section31 Posted December 15, 2003 Posted December 15, 2003 NM, I got it. Hi, does anyone know off the top of their head how to append something to a certain part of the file. Not just the beginning or end. Lets say something like this >$lines = file("somefile.txt"); foreach ($lines as $line) if ($line == "line blah") { replace this line with "blah" by using an fwrite or something } Is this even possible? Thanks, Dave Quote
TCH-Don Posted December 17, 2003 Posted December 17, 2003 Well congrats, so share already Naughty Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.