Jump to content

include an external (w/ external domain) file psuedo iframe w/ php


programguru

Recommended Posts

I've been researching this for about 5 hours, and have had no luck whatsoever.

 

Does anyone know of a php script of technique that allows an external file include or open within a php or html page?

 

For example:

 

page1.php

display: external_file_at_another_domain_.com

 

The external file would essentially be displayed that same way that an iframe would.

 

Anyone know anything on this?

 

FYI: I've been testing jquery and javascript techniques all day, and have found no way to include an external domain file to display.

 

SOS

 

just wondering, the file you want to include would have to be something special,

 

if it was just a static file, then including and absolute path should work

include('http://www.example.com/path/to/file.html');

Lodius2000,

 

The situation seems a bit more complicated.

 

The problem is I am trying to include an .asp page, and it seems as if using include() causes the page to process on my php server which is where the page is hosted.

 

Here is an example of the page I am trying to pull in:

http://clients.mindbodyonline.com/ws.asp?studioid=1434&stype=40

 

It just won't resolve.

 

<div style="width: 800px; height: 700px;">

<?php include('http://clients.mindbodyonline.com/ws.asp?studioid=1434&stype=40 ');  ?>

</div>

 

Man this is driving me nuts... I am beginning to think this really is not possible :o

 

Is anyone out there that might know a bit about this subject..

 

Even if I could replace a div with an external (remote domain) page would be nice, but it appears js  can't even do that right with this url i am trying out.

if you can run asp on your server, and have all of the asp included files from that script then it should run fine, but if not I dont think its possible..... unlesss

 

does the url always end with studioid=1434&stype=40  or does that change, if it is always the same url, then you can just copy the page source and save that then include that saved page source as your iframe...

 

but its not that easy is it?

Archived

This topic is now archived and is closed to further replies.

×
×
  • Create New...

Important Information

We have placed cookies on your device to help make this website better. You can adjust your cookie settings, otherwise we'll assume you're okay to continue.