Click here to Skip to main content
Click here to Skip to main content
Go to top

asp2php shell

, 21 Aug 2005
Rate this:
Please Sign up or sign in to vote.
A shell application for the asp2php utility.

Sample Image - a2pshell.jpg

Introduction

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 Smile | :)

Acknowledgements

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 Smile | :)

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 Smile | :)

Update

I finally got round to fixing the "spaces in the path" problem ... it still wont change your world but it's a bit better...

History

  • 10th Feb 2003 - Version 1.
  • 12th August 2005 - Version 1.1.

License

This article has no explicit license attached to it but may contain usage terms in the article text or the download files themselves. If in doubt please contact the author via the discussion board below.

A list of licenses authors might use can be found here

Share

About the Author

l a u r e n
Software Developer
Germany Germany
i write code and i travel and i like dinosaurs and i write in lowercase
Follow on   Twitter

Comments and Discussions

 
Generalheads up... Pinmemberlauren10-Feb-03 8:46 
GeneralNicely Done PinmemberRoger Wright10-Feb-03 8:38 
QuestionBut Why? PinmemberBlake Coverett10-Feb-03 8:20 
AnswerRe: But Why? PinmemberRoger Wright10-Feb-03 8:36 
GeneralRe: But Why? PinmemberJonny Newman10-Feb-03 9:05 
GeneralRe: But Why? PinmemberRoger Wright10-Feb-03 21:11 
GeneralRe: But Why? PinmemberTili11-Feb-03 7:50 
AnswerRe: But Why? PinsitebuilderPaul Watson10-Feb-03 8:41 
Blake Coverett wrote:
why would you want to convert a perfectly nice ASP web site to a PHP one?
 
Not everyone likes sleeping with the devil? Wink | ;)
 

Actually there are good reasons. We have had clients who have wanted their ASP site converted to PHP for a number of reasons. One is hosting cost, PHP hosts are cheaper as the OS and web-server are free as opposed to forking out for Windows NT/2000 Server. Also a client may now have PHP skills in house and they want some mods to the site, but since it is all in ASP their guy can't do it. So instead of contracting out, say to us, they convert and then their guy can do it.
 
The reliability issue... well my judgement is still out on that but most people do think it.
 
Paul Watson
Bluegrass
Cape Town, South Africa
Roger Wright wrote:
Using a feather is kinky; using the whole chicken is perverted!
GeneralRe: But Why? PineditorNick Parker10-Feb-03 9:19 
GeneralRe: But Why? PinmemberJörgen Sigvardsson10-Feb-03 11:12 
GeneralRe: But Why? PinmemberDavid Wulff10-Feb-03 17:17 
AnswerRe: But Why? Pinmemberlauren10-Feb-03 8:42 

General General    News News    Suggestion Suggestion    Question Question    Bug Bug    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

Use Ctrl+Left/Right to switch messages, Ctrl+Up/Down to switch threads, Ctrl+Shift+Left/Right to switch pages.

| Advertise | Privacy | Mobile
Web02 | 2.8.140921.1 | Last Updated 22 Aug 2005
Article Copyright 2003 by l a u r e n
Everything else Copyright © CodeProject, 1999-2014
Terms of Service
Layout: fixed | fluid