PDA

View Full Version : Include ASP page sections


Michael Morris
07-31-2004, 09:19 AM
Hello. I'm helping to work on a site were the vast majority of the pages are done in Micro$oft ASP.net. I'd like to be able to include certain small page sections like headers in news headers and side colums in the site's bulletin boards (which are of course PHP powered since they are vbulletin).

If the server that receives the page request processes the ASP, would that work (then it becomes a matter of including an HTML file into a vbulletin page)

Modin
08-02-2004, 10:07 PM
if you need to include an entire asp page you can do that via a frame...

other than that I don't know of any way to merge the 2 languages... maybe via shell commands?

Michael Morris
08-03-2004, 06:00 PM
It's a devilish problem...

Oh, did I mention the ASP pages were on a different server entirely ??

Modin
08-04-2004, 01:39 AM
hmm...

I have an idea...

try using fopen (or better yet file_get_contents). If your server supports URL's for fopen then it'll be equivelent to a browser call.


$asp_page = file_get_contents("http://www.link.to.asp.page.asp");


after this you'll have the output of the asp page as a string. Then you can do what you want with it :)