moving a text file
Posted: Tue Feb 17, 2004 12:12 pm
Ok, I have a text file that gets updated daily. But, i need to keep the old text files for historical purposes. How can I do this in PHP?? I need to move the old file to a different directory and change the name to have the date on it
ie: old text file: test.txt
move to old_text_files/02-17-04.txt
then i need the new text file to be written in its place with the old name of test.txt.
Thanks
ie: old text file: test.txt
move to old_text_files/02-17-04.txt
then i need the new text file to be written in its place with the old name of test.txt.
Thanks