Hello.. I am moving my website (medium size ~50-60 megs) to a new server. However I am going to maintain my old site for a while.

What I want to do is write some code that will start at a particular directory, and replace each file (FILEX.html) with a new .html file that reads:

this page has moved, you can find it at www.newsite.com/FILEX.html

.. What is the best way to go through the starting directory, its subs, their subs, etc recursivly?

I had some problems doing this with an MP3 indexer i was building b/c I couldn't get it to recurse.. ( i think i was using the DIR() command, and it was global so wouldn't hold the variable for a recursion????)


any help would be appreciated.