Add PHP to ASP.NET

Asked

Viewed 675 times

5

I am creating a website in ASP.NET and the company wants me to maintain the client area of the old site that was made in PHP.

The client area consists of a login, in which after being authenticated, the client can fill out a form with his problem and after being filled in, this form will be sent to a platform where the technicians consult all the problems of the customers.

All this is already done in PHP and Mysql. Only apply on the site that is being created in ASP.NET.

What’s the best way to do that?

I have thought about when the company put the old site offline, leave the part of the online client area and this site in ASP.NET create only the login part and if the login succeeds, redirect to the old page but do not know to what extent this is possible or safe.

  • 1

    It is a little complicated to integrate the two sites, because they must be different servers (linux and windows) - But as the data goes to Mysql; I believe you can leave the two working individually - Connecting the two through Mysql, after all the data will be recorded independent of the programming used.

  • 2

    Have you managed to install the PHP site on IIS? Or is this not possible?

  • Possible: https://technet.microsoft.com/pt-pt/library/hh994589.aspx

  • Good evening, a tip, use tags relevant to the problem, I’m sure will take my comment as a constructive criticism.

  • Pick a tool and work with it if you’re gonna use it PHP use, if you’re not going to use it, don’t waste valuable time creating laborious routines. You’re more likely to make mistakes by putting them together than you are to work with just one. And that problem you have there, it’s just superficial, then there are others that you will have to solve.

2 answers

1

I developed a platform in ASP+PHP, with independent servers (WINDOWS and LINUX), integration between two languages may occur in some ways:

  • You can create keys to ensure the security of the integration, encrypt them obviously and pass the data by GET (with the keys too);
  • Use a page front-end (ASP.NET) and with AJAX pass the data via POST one-page PHP;
  • Using the database itself to integrate the two languages, this is the safest way.

There is not much to do to integrate two languages, but a more reliable and ideal solution would be to use the database itself to do this.

0

Why don’t you leave the authentication and client area in PHP, develop everything else in ASP.net, and just make sure that the user is authenticated when accessing the ASP.net pages. Correct?

You create an authentication mechanism in ASP.net, and when you enter the application in PHP the user automatically is also registered in the application made in ASP.net.

Browser other questions tagged

You are not signed in. Login or sign up in order to post.