Tycoon Talk
Become a Big fish!
The number 1 forum for online business!
Post topics, ask questions, share your knowledge.
Tycoon Talk is part of Freelancer.com - find skilled workers online at a fraction of the cost.

HTML Forum


You are currently viewing our HTML Forum as a guest. Please register to participate.
Login



Post a Project »

Find a Professional HTML Freelancer!

Find a Freelancer to help you with your HTML projects

FREE Outsourcing eBook!

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

Posts: 78
Trades: 0
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
 
 
Register now for full access!
Old 05-25-2007, 11:20 AM Re: Error when using http:// in include virtual shtml
ADAM Web Design's Avatar
Canadastaninianite

Posts: 5,935
Name: Adam for web page design, not program
Location: Toronto, Ontario, Canada
Trades: 0
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.
__________________

Please login or register to view this content. Registration is FREE
|
Please login or register to view this content. Registration is FREE
(my blog)


Please login or register to view this content. Registration is FREE
(with proof)
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
Skilled Talker

Posts: 78
Trades: 0
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
Missing! presumed drunk.

Posts: 42,382
Name: Chris Hirst
Location: Blackpool. UK
Trades: 0
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. ->>
Please login or register to view this content. Registration is FREE
<<-

A foolish consistency is the hobgoblin of little minds
Thought for today:- Is SEO the only industry where all the cowboys are Indians?
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
Skilled Talker

Posts: 78
Trades: 0
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 Search this Thread
Search this Thread:

Advanced Search

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

BB 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.33014 seconds with 12 queries