mgs019 Posted February 22, 2007 Share Posted February 22, 2007 I am trying to make an application which will run on any webpage. I thought inserting the line <?php include('http://www.url'); ?> would work but it didn't. It just errored at me. Any idea what I can do to get the desired result? Thanks, Martin Link to comment https://forums.phpfreaks.com/topic/39636-php-include-a-file-on-another-server/ Share on other sites More sharing options...
redarrow Posted February 22, 2007 Share Posted February 22, 2007 look up iframe <P ALIGN=center><IFRAME SRC="foo.html" WIDTH=300 HEIGHT=100></IFRAME></P> Link to comment https://forums.phpfreaks.com/topic/39636-php-include-a-file-on-another-server/#findComment-191318 Share on other sites More sharing options...
mgs019 Posted February 22, 2007 Author Share Posted February 22, 2007 part of this application requires knowing the root of the host website. I have been using $_server['DOCUMENT_ROOT'] will this give my root or the host root? if it will give the host how do I get it to find where it is? Martin Link to comment https://forums.phpfreaks.com/topic/39636-php-include-a-file-on-another-server/#findComment-191336 Share on other sites More sharing options...
skali Posted February 22, 2007 Share Posted February 22, 2007 You can only include file from other server if it is shared to your server through network share. Link to comment https://forums.phpfreaks.com/topic/39636-php-include-a-file-on-another-server/#findComment-191410 Share on other sites More sharing options...
Recommended Posts
Archived
This topic is now archived and is closed to further replies.