By some coincidence this problem has come up twice in the last week.
A customer has an existing PHP web site which they want to keep. They also have or will soon have some ASP.net web pages that they wish to integrate into the existing site, in a way that it appears as a single site.
We have though of the following possibilities:
- Use IFrame
- Copy all html / menus to the new site and link between sites, user moves between sites but does not notice, if he does not look at the url
- Use web services to read information from the asp.net web site and write the html on the PHP site.
- Use WSRP (Web services Remote Portlets). Have tested this to display Sharepoint webparts on a Java site, have not tested with PHP.
Has anyone tried any of these? Has a better suggestion? Is there any we should definatly avoid?
Thanks
Shiraz
It really depends on what an acceptable level of integration is. Your original suggestions have a number of issues with maintainability, and I would not suggest they are used for an public-facing internet site.
If I had full control, I might consider migrating the PHP site to IIS, and deploying ASP.NET pages to the site alongside the PHP files. This can be quite tricky depending on how the PHP site has been built. Problems you might run into including:
On your suggested options