5,666,979 members and growing! (15,779 online)
Email Password   helpLost your password?
Web Development » Applications & Tools » Tools with source code     Intermediate

asp2php shell

By l a u r e n

A shell application for the asp2php utility.
VC6, VC7, C++Windows, Win2K, WinXP, MFC, PHP, VS6, Visual Studio, Dev

Posted: 9 Feb 2003
Updated: 21 Aug 2005
Views: 154,814
Bookmarked: 25 times
Announcements
Loading...



Search    
Advanced Search
Sitemap
47 votes for this Article.
Popularity: 5.59 Rating: 3.34 out of 5
10 votes, 21.7%
1
0 votes, 0.0%
2
4 votes, 8.7%
3
9 votes, 19.6%
4
23 votes, 50.0%
5

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

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

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

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

About the Author

l a u r e n


maintainance coding (and spell checkers) are for people with more time and less curiosity than me ... i have a dog called god and we take long walks and discuss bigotry and bones


Occupation: Web Developer
Location: United States United States

Other popular Applications & Tools articles:

Article Top
Sign Up to vote for this article
You must Sign In to use this message board.
FAQ FAQ Noise ToleranceSearch Search Messages 
 Layout  Per page   
 Msgs 1 to 25 of 49 (Total in Forum: 49) (Refresh)FirstPrevNext
Questiona question from sureshkakistaffSean Ewington4:31 8 May '07  
GeneralWhere do PHP files go?memberRhettinari13:32 1 Sep '04  
GeneralRe: Where do PHP files go?memberghanley15:50 7 Nov '04  
GeneralRe: Where do PHP files go?memberAbunai10:28 10 Dec '04  
GeneralRe: Where do PHP files go?membersunner13:28 13 Dec '04  
Generaldid not convert anythingmemberiffo5:07 10 Jul '04  
Generalwhere are the converted files?memberdaino7:15 30 Apr '04  
GeneralRe: where are the converted files?sussPulsorock20:08 19 May '04  
GeneralRe: where are the converted files?memberel_ade1:22 1 Jul '04  
GeneralDid not work at all for memembervirtual712:57 8 Dec '03  
GeneralRe: Did not work at all for mememberl a u r e n18:19 8 Dec '03  
GeneralMe2, it's still asp filesmemberMad4U20:20 24 Feb '04  
GeneralRe: Me2, it's still asp filesmemberl a u r e n8:03 25 Feb '04  
GeneralDidn't work on the things I needed it formemberDaAlmighySmithy16:58 2 Mar '04  
GeneralPHP and ASP with IISmemberfarocam69:03 5 Dec '03  
GeneralRe: PHP and ASP with IISmemberl a u r e n9:29 5 Dec '03  
GeneralRe: PHP and ASP with IISmemberfarocam69:54 5 Dec '03  
GeneralRe: PHP and ASP with IISmemberl a u r e n9:57 5 Dec '03  
GeneralRe: PHP and ASP with IISmemberfarocam66:07 8 Dec '03  
Generalfile/directory names with spacesmemberborsnpl0:05 29 Apr '03  
GeneralWhy does this site have .asp extensions!!memberbarrymac6:42 2 Apr '03  
GeneralRe: Why does this site have .asp extensions!!memberTJDEV16:14 27 Jun '07  
GeneralRe: Why does this site have .asp extensions!!memberl a u r e n16:18 27 Jun '07  
GeneralMe :-)supporterDana Holt8:54 1 Apr '03  
GeneralPHP 2 ASPmemberm4h5:38 13 Mar '03  

General General    News News    Question Question    Answer Answer    Joke Joke    Rant Rant    Admin Admin   

PermaLink | Privacy | Terms of Use
Last Updated: 21 Aug 2005
Editor: Smitha Vijayan
Copyright 2003 by l a u r e n
Everything else Copyright © CodeProject, 1999-2008
Web10 | Advertise on the Code Project