Print Page | Close Window

automated conversion of PHP code to ASP

Printed From: Web Wiz Forums
Category: General Discussion
Forum Name: Classic ASP Discussion
Forum Description: Discussion on Active Server Pages (Classic ASP).
URL: https://forums.webwiz.net/forum_posts.asp?TID=28913
Printed Date: 28 March 2026 at 9:03am
Software Version: Web Wiz Forums 12.08 - https://www.webwizforums.com


Topic: automated conversion of PHP code to ASP
Posted By: alabamatoy
Subject: automated conversion of PHP code to ASP
Date Posted: 20 October 2010 at 12:26pm
Anyone had any luck with tools to convert PHP code to ASP?



Replies:
Posted By: dpyers
Date Posted: 20 October 2010 at 7:29pm
I haven't played with converters for years but as I recall, there were two major problems:

1. Tons of errors. Some of which were pretty obscure. You pretty much need a firm foundation in both languages to correct conversion errors. On many conversions, it would have taken me less time to write a new script than to correct a conversion.

2. Horrible code. Good PHP and ASP scripts are laid out differently for readability and maintainability. Conversions tend to produce spaghetti code.




-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: dfrancis
Date Posted: 22 October 2010 at 5:31pm
Mmmm tasty spagetti! LOL

-------------
“If you want things to be different, you must be willing to do different things!” http://www.DavidFrancis.org/?wwf=signature" rel="nofollow - David Francis





Posted By: dpyers
Date Posted: 22 October 2010 at 6:12pm
Hey Dave!

While I believe that good code comes out of SoKY, I have my doubts about tasty spaghetti. Folks that use a can of tomato soup for sauce just don't understand food.




-------------

Lead me not into temptation... I know the short cut, follow me.


Posted By: Edwerd
Date Posted: 04 November 2010 at 11:13am
No. I think there no such tools. You can’t use those languages directly into once, but there is way to use ASP.NET and PHP into one web application. You can use mysql database as bridge between those two languages. For an example: First you do what ever operations in PHP and store its results into mysql database and using ASP you call those results into ASP application. I hope you got the idea.


Posted By: WebWiz-Bruce
Date Posted: 04 November 2010 at 2:00pm
I have written loads of applications that mix PHP, ASP, and ASP.NET and you don't need to use a database.

You can use things like AJAX, Microsoft HTTP Component, or SOAP to post requests to an application written in a different language which then returns a response that you can parse in your original application.


-------------
https://www.webwiz.net/web-wiz-forums/forum-hosting.htm" rel="nofollow - Web Wiz Forums Hosting
https://www.webwiz.net/web-hosting/windows-web-hosting.htm" rel="nofollow - ASP.NET Web Hosting



Print Page | Close Window

Forum Software by Web Wiz Forums® version 12.08 - https://www.webwizforums.com
Copyright ©2001-2026 Web Wiz Ltd. - https://www.webwiz.net