Solved

Convert PHP to ASP?

Posted on 2007-03-24
7
1,040 Views
Last Modified: 2008-02-01
Dose anyone know if there is some software to convert PHP code to ASP classic ?
0
Comment
Question by:gummisj
  • 3
  • 3
7 Comments
 
LVL 5

Assisted Solution

by:Gitcho
Gitcho earned 200 total points
Comment Utility
There's a free online converter that will translate blocks of PHP code to ASP classic, but its not foolproof. It might save you a lot of time though :  http://www.me-u.com/php-asp/  .  The specifics of what it will port are listed here : http://www.me-u.com/php-asp/conversionnotes.htm

I would think you will have a tough time finding a do-it-all solution that won't require much post-processing, but maybe this is what you're looking for.  Good luck !
0
 
LVL 54

Accepted Solution

by:
b0lsc0tt earned 300 total points
Comment Utility
I have seen software or sites that offer this but I suggest that they are not used.  ASP is a nice technology/language but PHP has many different capabilities and features.  Any "automated" translation of ASP to PHP script will ignore this.  Even if the PHP script functions, which is doubtful especially with complex scripts, it will be poorly designed.  For best results the script should be rewritten as a new PHP script not just "translating" the ASP.

I can suggest some good sites to learn PHP.  The best is the documentation that comes with PHP which is also available at www.php.net.  The article at http://www.4guysfromrolla.com/webtech/010601-1.shtml is a good discussion of converting to PHP for the ASP developer.

Let me know how this helps or if you have a question.

bol
0
 

Author Comment

by:gummisj
Comment Utility
this is not ceversion from ASP to PHP. this is convert FROM PHP to ASP, quote "For best results the script should be rewritten as a new PHP script not just "translating" the ASP."
0
How to run any project with ease

Manage projects of all sizes how you want. Great for personal to-do lists, project milestones, team priorities and launch plans.
- Combine task lists, docs, spreadsheets, and chat in one
- View and edit from mobile/offline
- Cut down on emails

 

Author Comment

by:gummisj
Comment Utility
i will think i will let someone rewrite the PHP script to NEW ASP script. but i need to ask about this. and it whould be nice to know if such software exists?
0
 
LVL 54

Expert Comment

by:b0lsc0tt
Comment Utility
I'm not sure what the quote was meant to add to the correction but sorry for the mistake.  The dyslexia strikes again.  :)  Sorry!  My general suggestion still holds, don't tranlate (or use something to translate).  Let me know if you want some suggestions (i.e. books, sites) to help you learn ASP.

Sorry if mixing the languages up confused the comment.

bol
0
 

Author Comment

by:gummisj
Comment Utility
hehe... np.  i will let some one rewrtite it :), do you know about some good book to learn ASP
0
 
LVL 54

Expert Comment

by:b0lsc0tt
Comment Utility
I have personally really like the books by Wrox for ASP.  Depending on your level of programming skills and what you want to learn you can select different books but "Beginning ASP 3.0" (http://www.wrox.com/WileyCDA/WroxTitle/productCd-0764543636.html) is a good one.

I noticed the B grade.  Did you still have some question or need some help?  If so, let me know.  It is nice to have a chance to earn the A. :)

Thanks for the fun question.

bol
0

Featured Post

IT, Stop Being Called Into Every Meeting

Highfive is so simple that setting up every meeting room takes just minutes and every employee will be able to start or join a call from any room with ease. Never be called into a meeting just to get it started again. This is how video conferencing should work!

Join & Write a Comment

Introduction Since I wrote the original article about Handling Date and Time in PHP and MySQL (http://www.experts-exchange.com/articles/201/Handling-Date-and-Time-in-PHP-and-MySQL.html) several years ago, it seemed like now was a good time to updat…
JavaScript has plenty of pieces of code people often just copy/paste from somewhere but never quite fully understand. Self-Executing functions are just one good example that I'll try to demystify here.
The viewer will learn how to look for a specific file type in a local or remote server directory using PHP.
The viewer will receive an overview of the basics of CSS showing inline styles. In the head tags set up your style tags: (CODE) Reference the nav tag and set your properties.: (CODE) Set the reference for the UL element and styles for it to ensu…

772 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

10 Experts available now in Live!

Get 1:1 Help Now