programguru Posted February 7, 2009 Share Posted February 7, 2009 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 Link to comment https://forums.phpfreaks.com/topic/144169-include-an-external-w-external-domain-file-psuedo-iframe-w-php/ Share on other sites More sharing options...
Lodius2000 Posted February 7, 2009 Share Posted February 7, 2009 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'); Link to comment https://forums.phpfreaks.com/topic/144169-include-an-external-w-external-domain-file-psuedo-iframe-w-php/#findComment-756531 Share on other sites More sharing options...
programguru Posted February 7, 2009 Author Share Posted February 7, 2009 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 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. Link to comment https://forums.phpfreaks.com/topic/144169-include-an-external-w-external-domain-file-psuedo-iframe-w-php/#findComment-756546 Share on other sites More sharing options...
Lodius2000 Posted February 7, 2009 Share Posted February 7, 2009 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? Link to comment https://forums.phpfreaks.com/topic/144169-include-an-external-w-external-domain-file-psuedo-iframe-w-php/#findComment-756561 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.