Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - automated conversion of PHP code to ASP
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

automated conversion of PHP code to ASP

 Post Reply Post Reply
Author
alabamatoy View Drop Down
Groupie
Groupie


Joined: 04 February 2006
Location: United States
Status: Offline
Points: 143
Post Options Post Options   Thanks (0) Thanks(0)   Quote alabamatoy Quote  Post ReplyReply Direct Link To This Post Topic: automated conversion of PHP code to ASP
    Posted: 20 October 2010 at 12:26pm
Anyone had any luck with tools to convert PHP code to ASP?
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
dfrancis View Drop Down
Senior Member
Senior Member


Joined: 16 March 2005
Location: United States
Status: Offline
Points: 442
Post Options Post Options   Thanks (0) Thanks(0)   Quote dfrancis Quote  Post ReplyReply Direct Link To This Post 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!”David Francis



Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Post Options Post Options   Thanks (0) Thanks(0)   Quote dpyers Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
Edwerd View Drop Down
Newbie
Newbie
Avatar

Joined: 04 November 2010
Location: UK
Status: Offline
Points: 2
Post Options Post Options   Thanks (0) Thanks(0)   Quote Edwerd Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
WebWiz-Bruce View Drop Down
Admin Group
Admin Group
Avatar
Web Wiz Developer

Joined: 03 September 2001
Location: Bournemouth
Status: Offline
Points: 9844
Post Options Post Options   Thanks (0) Thanks(0)   Quote WebWiz-Bruce Quote  Post ReplyReply Direct Link To This Post 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.
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.