OK, well, this isn't going to change the world or anything but I developed it because I needed it and I figured I'd share it with y'all because we do that at CodeProject right?
What is it? Well if you have ever tried to use the .asp to .php conversion utility (asp2php written by Michael Kohn) you may have had the same problems I had to do with converting whole directory structures in one go. It seems as though a single file error causes the whole conversion process to abort. Then you have the choice to convert the files one by one (ugh!) or write something like this (yay!).
Michael has done a great job on the utility and although it's not perfect it sure does give you a good start when you have to convert a site from .asp to .php.
Using the code
The code presented here isn't anything radical like I said before but it may prove useful to some people who don't know how to do things like recursive file searching and shelling out to other apps. The code is commented enough and simple enough to be understandable by most people. I think so, I'm not going to go into detail here ... just look at it and say "big deal!" I know there are a lot of you who are way better than me at writing code so any idiot mistakes you find please let me know ... as well as anything that could be done better if you can be bothered to tell me about them :)
Oh yeah ... a big thanks to Dana Holt (I swear I thought you were female from your name) for the 'Browse For Folder" classes ... it was late and I was too tired to figure that stuff out and he had posted it here on CodeProject so I used it :)
Using the program
After you compile the program (or download the release version) just put it in the same folder as the asp2php utility and off you go :)
I finally got round to fixing the "spaces in the path" problem ... it still wont change your world but it's a bit better...
- 10th Feb 2003 - Version 1.
- 12th August 2005 - Version 1.1.