![]() |
SSI and PHP includes
I'm trying to include a webpage file on some of my sites. The site hosting the file is on one server, but the site I want to include the file on is on another server.
I've tried the standard SSI include of <!--#include file="http://www.myurl.com/includes/bahbahh.html"--> I've also tried setting up the page as a PHP page and using PHP includes for example.. <?php require("http://www.myurl.com/includes/bahbahh.html"); ?> neither seem to work.. I assume it's because the sites aren't on the same server. Is there anyway to make this work? |
<? @include("http://whateveryouwant.com"); ?>
|
Depending on your hosting, it's possible that you're firewalled against doing http requests out from your server. You may be able to talk to your host to get them to allow outgoing requests if that's the case.
It should be easy to check that: Do an include of a known good site. If it doesn't work, chances are you're firewalled. |
Quote:
|
Quote:
|
Try using require instead of include
|
All times are GMT -7. The time now is 08:40 PM. |
Powered by vBulletin® Version 3.8.8
Copyright ©2000 - 2025, vBulletin Solutions, Inc.
©2000-, AI Media Network Inc123