Reply
Error when using http:// in include virtual shtml
Old 05-25-2007, 10:59 AM Error when using http:// in include virtual shtml
Experienced Talker

Posts: 44
hello I am using a virtual include, I would like to use a direct address on it for use with subdomains, however whenever I use the http:// part it wont work. It works using:

<!--#include virtual="/includes/footer.shtml"-->

I would like to do it like this: <!--#include virtual="http://www.site.com/includes/footer.shtml"-->

The main page I am including it in is shtml, are you not allowed to use an absolute address like this?
Boar is offline
Reply With Quote
View Public Profile
 
When You Register, These Ads Go Away!
Old 05-25-2007, 11:20 AM Re: Error when using http:// in include virtual shtml
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,945
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
For security reasons (i.e. cross-site scripting) and possibly other reasons, no.

It would be all too easy to replace <!--#include virtual="http://www.site.com/includes/footer.shtml"--> with <!--#include virtual="http://www.site.com/includes/page-that-gathers-credit-card-info/stores-the-credit-card-names-numbers-and-expiry-dates/so-the-owner-of-the-site-can-go-on-an-illegal-shopping-spree.php"--> instead.
ADAM Web Design is offline
Reply With Quote
View Public Profile Visit ADAM Web Design's homepage!
 
Old 05-25-2007, 11:36 AM Re: Error when using http:// in include virtual shtml
Experienced Talker

Posts: 44
Thanks!

That makes sense, is it not allowed in PHP either?
Boar is offline
Reply With Quote
View Public Profile
 
Old 05-25-2007, 11:41 AM Re: Error when using http:// in include virtual shtml
chrishirst's Avatar
Super Moderator

Posts: 13,579
Location: Blackpool. UK
In PHP you can have an absolute address for the included page, but note that any PHP script code on the page will be executed on the host server and only the HTML output will be included.
__________________
Chris. ->> Links are advertising NOT optimising!! <<-
Indifference will be the downfall of mankind, but who cares?
Code Samples | People Counting System
chrishirst is online now
Reply With Quote
View Public Profile Visit chrishirst's homepage!
 
Old 05-25-2007, 02:47 PM Re: Error when using http:// in include virtual shtml
Experienced Talker

Posts: 44
Okay cool thanks. I was planning on only using php in the future but I have this site thats already in shtml that Im redesigning so I am stuck with these page names!
Boar is offline
Reply With Quote
View Public Profile
 
Reply     « Reply to Error when using http:// in include virtual shtml
 

Thread Tools

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




   
RSS Feed  Feeds: RSS   JS   XML
RSS Feed  Feeds for this forum: RSS   JS   XML

 


Page generated in 0.13696 seconds with 12 queries