ASPX from within PHP?

Willie Trombone

Honorary Master
Joined
Jul 18, 2008
Messages
60,038
Is there any way of hosting an aspx page within a PHP page - i.e. just a reference to it... sort of like Google does with it's image search results (it opens a page on their server with the original page displayed below the top 'frame')...?
 

Willie Trombone

Honorary Master
Joined
Jul 18, 2008
Messages
60,038
Perhaps - have you tried it yet? Has anyone tried this?
My example:
I have a php web app running under apache, I want to link to an ASPX app without losing the header and navigation controls. The ASPX app is hosted in IIS and is AJAX based - Google Maps based to be precise... would that work?
 

SilverNodashi

Expert Member
Joined
Oct 12, 2007
Messages
3,337
Is the ASPX page on the same server, or on another?

One way of doing it is to embed it in an AJAX'ed script. We had a similar discussion here. Another way is to use PHP's "require_once" function.
 

FarligOpptreden

Executive Member
Joined
Mar 5, 2007
Messages
5,396
But you should be able to run the .NET app in an iframe, regardless of where the application is located. If you're able to open the application from the same browser you open the PHP app, then it should work in an iframe. You could even pass parameters through to the .NET application from the PHP application by dynamically building up the URL to post through the iframe.
 

Willie Trombone

Honorary Master
Joined
Jul 18, 2008
Messages
60,038
But you should be able to run the .NET app in an iframe, regardless of where the application is located. If you're able to open the application from the same browser you open the PHP app, then it should work in an iframe. You could even pass parameters through to the .NET application from the PHP application by dynamically building up the URL to post through the iframe.
Ja, that's kind of what we are looking for - I'll give it a go... thanks!
Soft Dux - thats a great link, thanks!
 
Top