Click here to Skip to main content
Click here to Skip to main content

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


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


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


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.


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


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

Questiona question from sureshkaki PinstaffSean Ewington8-May-07 4:31 
QuestionWhere do PHP files go? PinmemberRhettinari1-Sep-04 13:32 
AnswerRe: Where do PHP files go? Pinmemberghanley7-Nov-04 15:50 
GeneralRe: Where do PHP files go? PinmemberAbunai10-Dec-04 10:28 
AnswerRe: Where do PHP files go? Pinmembersunner13-Dec-04 13:28 
Generaldid not convert anything Pinmemberiffo10-Jul-04 5:07 
Questionwhere are the converted files? Pinmemberdaino30-Apr-04 7:15 
AnswerRe: where are the converted files? PinsussPulsorock19-May-04 20:08 
AnswerRe: where are the converted files? Pinmemberel_ade1-Jul-04 1:22 
GeneralDid not work at all for me Pinmembervirtual78-Dec-03 12:57 
GeneralRe: Did not work at all for me Pinmemberl a u r e n8-Dec-03 18:19 
GeneralMe2, it's still asp files PinmemberMad4U24-Feb-04 20:20 
GeneralRe: Me2, it's still asp files Pinmemberl a u r e n25-Feb-04 8:03 
GeneralDidn't work on the things I needed it for PinmemberDaAlmighySmithy2-Mar-04 16:58 
GeneralPHP and ASP with IIS Pinmemberfarocam65-Dec-03 9:03 
GeneralRe: PHP and ASP with IIS Pinmemberl a u r e n5-Dec-03 9:29 
GeneralRe: PHP and ASP with IIS Pinmemberfarocam65-Dec-03 9:54 
GeneralRe: PHP and ASP with IIS Pinmemberl a u r e n5-Dec-03 9:57 
GeneralRe: PHP and ASP with IIS Pinmemberfarocam68-Dec-03 6:07 
GeneralRe: PHP and ASP with IIS PinmemberGary Canada10-Feb-09 11:06 
One of the biggest problems people have with installing php on IIS is they take the easy way out nad use the installer package. In my experiance it ALWAYS sets some things up incorrectly and sooner or later you will find a problem you can't solve (been there, done that and had to reinstall the server AND php!) It gets even more trickie when you tack on Java, and Ruby on Rails, and add Pearl support... what a mess!
Mine is working great now after about 4 months, lots of posts on many forums getting only an 'UMMM' response... Finally a fella out of Russia responded and bailed me out (Thanks Dimetry!) He had the same headachs and learned the hard way.
There are a number of sites now that cover manually setting up PHP, and I recomend you upgrade to PHP5 because no one is going to support the older version, and version 5 is a LOT better and more powerful.
Hang in there, we all have those days, and that is what a forum is all about!
Generalfile/directory names with spaces Pinmemberborsnpl29-Apr-03 0:05 
GeneralWhy does this site have .asp extensions!! Pinmemberbarrymac2-Apr-03 6:42 
GeneralRe: Why does this site have .asp extensions!! PinmemberTJDEV27-Jun-07 16:14 
GeneralRe: Why does this site have .asp extensions!! Pinmemberl a u r e n27-Jun-07 16:18 
GeneralMe :-) PinmemberDana Holt1-Apr-03 8:54 
GeneralPHP 2 ASP Pinmemberm4h13-Mar-03 5:38 
GeneralRe: PHP 2 ASP Pinmemberbinaiko5-Jan-08 3:31 
GeneralDoesnt do anything Pinmembertuin11-Mar-03 6:25 
GeneralRe: Doesnt do anything PinmemberPerFnurt6-Apr-04 3:17 
Questionwhy doesn't it convert the entire code? Pinmembertokyo1321-Feb-03 6:01 
AnswerRe: why doesn't it convert the entire code? Pinmemberlauren21-Feb-03 6:10 
QuestionHow to ask question? Pinmemberlanlijing10-Feb-03 15:47 
AnswerRe: How to ask question? Pinmemberlauren10-Feb-03 15:57 
GeneralRe: How to ask question? Pinmemberlanlijing10-Feb-03 16:56 
GeneralRe: How to ask question? PinmemberNitron10-Feb-03 17:12 
GeneralRe: How to ask question? Pinmemberlanlijing10-Feb-03 19:45 
GeneralLabel missing apostrophe in "don't" PinmemberShog910-Feb-03 9:55 
GeneralRe: Label missing apostrophe in "don't" PinmemberJonny Newman10-Feb-03 10:08 
Generalheads up... Pinmemberlauren10-Feb-03 9:46 
GeneralNicely Done PinmemberRoger Wright10-Feb-03 9:38 
QuestionBut Why? PinmemberBlake Coverett10-Feb-03 9:20 
AnswerRe: But Why? PinmemberRoger Wright10-Feb-03 9:36 
GeneralRe: But Why? PinmemberJonny Newman10-Feb-03 10:05 
GeneralRe: But Why? PinmemberRoger Wright10-Feb-03 22:11 
GeneralRe: But Why? PinmemberTili11-Feb-03 8:50 
AnswerRe: But Why? PinsitebuilderPaul Watson10-Feb-03 9:41 
GeneralRe: But Why? PineditorNick Parker10-Feb-03 10:19 
GeneralRe: But Why? PinmemberJörgen Sigvardsson10-Feb-03 12:12 
GeneralRe: But Why? PinmemberDavid Wulff10-Feb-03 18:17 
AnswerRe: But Why? Pinmemberlauren10-Feb-03 9: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 | Terms of Use | Mobile
Web01 | 2.8.150224.1 | Last Updated 22 Aug 2005
Article Copyright 2003 by l a u r e n
Everything else Copyright © CodeProject, 1999-2015
Layout: fixed | fluid