Solved

Convert PHP to ASP?

Posted on 2007-03-24
7
1,050 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
ID: 18786667
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
ID: 18786685
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
ID: 18786718
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
Are your AD admin tools letting you down?

Managing Active Directory can get complicated.  Often, the native tools for managing AD are just not up to the task.  The largest Active Directory installations in the world have relied on one tool to manage their day-to-day administration tasks: Hyena. Start your trial today.

 

Author Comment

by:gummisj
ID: 18786729
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
ID: 18786742
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
ID: 18787786
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
ID: 18793699
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

PRTG Network Monitor: Intuitive Network Monitoring

Network Monitoring is essential to ensure that computer systems and network devices are running. Use PRTG to monitor LANs, servers, websites, applications and devices, bandwidth, virtual environments, remote systems, IoT, and many more. PRTG is easy to set up & use.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

SASS allows you to treat your CSS code in a more OOP way. Let's have a look on how you can structure your code in order for it to be easily maintained and reused.
Since pre-biblical times, humans have sought ways to keep secrets, and share the secrets selectively.  This article explores the ways PHP can be used to hide and encrypt information.
Viewers will learn about the regular for loop in Java and how to use it. Definition: Break the for loop down into 3 parts: Syntax when using for loops: Example using a for loop:
Video by: Mark
This lesson goes over how to construct ordered and unordered lists and how to create hyperlinks.

831 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