GoFuckYourself.com - Adult Webmaster Forum

GoFuckYourself.com - Adult Webmaster Forum (https://gfy.com/index.php)
-   Fucking Around & Business Discussion (https://gfy.com/forumdisplay.php?f=26)
-   -   SSI and PHP includes (https://gfy.com/showthread.php?t=454658)

crockett 04-11-2005 12:55 PM

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?

Jakke PNG 04-11-2005 12:56 PM

<? @include("http://whateveryouwant.com"); ?>

rickholio 04-11-2005 01:00 PM

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.

crockett 04-11-2005 01:08 PM

Quote:

Originally Posted by TeenGodFather
<? @include("http://whateveryouwant.com"); ?>

humm that didn't work.. maybe it's what holio said..

mikeyddddd 04-11-2005 01:17 PM

Quote:

Originally Posted by crockett
humm that didn't work.. maybe it's what holio said..

That would appear to be the case. The example should work.

Damian_Maxcash 04-11-2005 01:21 PM

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