Page Index Toggle Pages: 1 Send TopicPrint
Normal Topic #include virtual (Read 1020 times)
Gilles
Full Member
***
Offline


To be or not to be hersenloos,
that's the question

Posts: 133
Location: Amsterdam
Joined: Jun 5th, 2003
Gender: Male
#include virtual
Jun 20th, 2003 at 8:46pm
Print Post  
How can i include a website somewhere else hosted?

Code
Select All
sub ChatLog {
    $yymain = qq~
<!--#include virtual="http://www.sk8world.nl/hersenloos/index.html" -->
~;
    $yytitle = "ChatLog";
    &template;
    exit;
} 

  
Back to top
WWW  
IP Logged
 
Gilles
Full Member
***
Offline


To be or not to be hersenloos,
that's the question

Posts: 133
Location: Amsterdam
Joined: Jun 5th, 2003
Gender: Male
Re: #include virtual
Reply #1 - Jun 20th, 2003 at 11:42pm
Print Post  
Never mind, already figured it out. My host doesn't support SSI. Gotta ask them to install that on Apache. Explains a lot Grin
  
Back to top
WWW  
IP Logged
 
Gilles
Full Member
***
Offline


To be or not to be hersenloos,
that's the question

Posts: 133
Location: Amsterdam
Joined: Jun 5th, 2003
Gender: Male
Re: #include virtual
Reply #2 - Jun 22nd, 2003 at 9:21pm
Print Post  
Gilles wrote on Jun 20th, 2003 at 11:42pm:
Never mind, already figured it out. My host doesn't support SSI. Gotta ask them to install that on Apache. Explains a lot Grin


Although im saying it myself im doubting it to. Isn't there another way (maybe with php) to include external pages (index.html) in Subs.pl?
  
Back to top
WWW  
IP Logged
 
Christer Alexander
God Member
*****
Offline


Make my day...

Posts: 3443
Location: Lethbridge
Joined: Feb 10th, 2002
Gender: Male
Re: #include virtual
Reply #3 - Jun 22nd, 2003 at 10:35pm
Print Post  
You can't include pages from another host with PHP, as far as I know..
  

Code
Select All
unless(0) { stab("LoonyPandora"); next; } 

Back to top
IP Logged
 
Gilles
Full Member
***
Offline


To be or not to be hersenloos,
that's the question

Posts: 133
Location: Amsterdam
Joined: Jun 5th, 2003
Gender: Male
Re: #include virtual
Reply #4 - Jun 23rd, 2003 at 7:55am
Print Post  
Quote:
You can't include pages from another host with PHP, as far as I know..


Oh yes you can, but the main problem is that the page wherein you want to include needs to have the extension .php. That's why im wondering how to perform this action inside Subs.pl

by the way, this is the php include tag:
Code
Select All
<?php
include ("http://www.yourwebhost.com/index.html");
?> 

  
Back to top
WWW  
IP Logged
 
Page Index Toggle Pages: 1
Send TopicPrint