iarp Posted March 19, 2009 Share Posted March 19, 2009 I have this code in an index.php file on a friends server (http://moha.xabbu.net) <?php require_once('http://beta.iarp.ca/moha/'); # My server ?> For some reason, whenever we view the page it's completely blank. If you look at the source code the entire page(on xabbu) is there. No clue why tho, any hints? Quote Link to comment https://forums.phpfreaks.com/topic/150206-solved-require_once-across-domains/ Share on other sites More sharing options...
revraz Posted March 19, 2009 Share Posted March 19, 2009 http://us.php.net/function.file-get-contents Quote Link to comment https://forums.phpfreaks.com/topic/150206-solved-require_once-across-domains/#findComment-788805 Share on other sites More sharing options...
iarp Posted March 19, 2009 Author Share Posted March 19, 2009 Same deal, just a blank page. Quote Link to comment https://forums.phpfreaks.com/topic/150206-solved-require_once-across-domains/#findComment-788873 Share on other sites More sharing options...
trq Posted March 19, 2009 Share Posted March 19, 2009 Can you explain in a little more detail what your doing. the code you've posted doesn't seem to correlate to your question / description. Quote Link to comment https://forums.phpfreaks.com/topic/150206-solved-require_once-across-domains/#findComment-788877 Share on other sites More sharing options...
iarp Posted March 19, 2009 Author Share Posted March 19, 2009 I'm trying to get a page from my domain iarp.ca to show on a friends subdomain xabbu.net. At first i tried this code on moha.xabbu.net: <?php require_once('http://beta.iarp.ca/moha/'); ?> But that only resulted in a blank white page, and if you clicked CTRL+U to see the source code you ended up seeing the entire document source code but not the result. http://beta.iarp.ca/moha/ should be the visible result but as you can see on http://moha.xabbu.net it's completely blank and yet the source code is all there. I tried this code with the same effect as above: <?php $homepage = file_get_contents('http://beta.iarp.ca/moha/'); echo $homepage; ?> As taken from the php.net link in the first reply. Quote Link to comment https://forums.phpfreaks.com/topic/150206-solved-require_once-across-domains/#findComment-788884 Share on other sites More sharing options...
trq Posted March 19, 2009 Share Posted March 19, 2009 Ok, that's what I thought you where doing. Unfortunately though, I have no answer. Never seen anything like it. Quote Link to comment https://forums.phpfreaks.com/topic/150206-solved-require_once-across-domains/#findComment-788895 Share on other sites More sharing options...
corbin Posted March 19, 2009 Share Posted March 19, 2009 Hrmmm..... Perhaps something in JS is clearing the page when it sees that it's on the wrong domain? Maybe Google Analytics doesn't like it? Quote Link to comment https://forums.phpfreaks.com/topic/150206-solved-require_once-across-domains/#findComment-788903 Share on other sites More sharing options...
iarp Posted March 19, 2009 Author Share Posted March 19, 2009 >.< All because of one line <script type="text/javascript" src="/themes/flow/js/required.js"></script> <!-- Doesn't like the non-direct link --> Quote Link to comment https://forums.phpfreaks.com/topic/150206-solved-require_once-across-domains/#findComment-788912 Share on other sites More sharing options...
corbin Posted March 19, 2009 Share Posted March 19, 2009 Oh lol.... Yeah that'll do it ;p. Quote Link to comment https://forums.phpfreaks.com/topic/150206-solved-require_once-across-domains/#findComment-788915 Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.