473,386 Members | 1,886 Online
Bytes | Software Development & Data Engineering Community
Post Job

Home Posts Topics Members FAQ

Join Bytes to post your question to a community of 473,386 software developers and data experts.

Including an include file from another site

Hi All

Could you please confirm whether it is possible to include an include file,
which is on another site, but still on the same set of web servers.

I want to upload a default paeg to a number of web sites for certain
domains, but I would like the majority of the code for this page to be on 1
central site so that if I need to do an update of this page I only need to
update it on one site.

The code I am using is as follows, but I keep getting a HTTP 500 error:

default.asp page on each site contains

<!-- #include file="http://www.mydomain.co.uk/shell.asp" -->

shell.asp page on main site contains:

<HTML>
<BODY>
hello
</BODY>
</HTML>

Any ideas?

Thanks

Robbie
Jul 19 '05 #1
5 6393
> <!-- #include file="http://www.mydomain.co.uk/shell.asp" -->

The path needs to be a physical path. If both sites are on the same server,
try something like this...
<!--#include file="../shell.asp"-->

Randy
Jul 19 '05 #2
Robbie,

Not sure if this is possible without trying it, but you can try

<!-- #include virtual="http://www.mydomain.co.uk/shell.asp" -->

The other option is to set up a virtual directory in IIS that points
to the share you want to use.

HTH,
Mark

http://www.synapsecm.com - Simple, Multilingual Content Management
http://www.idataconsultingservices.com - Multilingual Web Development

"Astra" <in**@NoEmail.com> wrote in message news:<40**********@127.0.0.1>...
Hi All

Could you please confirm whether it is possible to include an include file,
which is on another site, but still on the same set of web servers.

I want to upload a default paeg to a number of web sites for certain
domains, but I would like the majority of the code for this page to be on 1
central site so that if I need to do an update of this page I only need to
update it on one site.

The code I am using is as follows, but I keep getting a HTTP 500 error:

default.asp page on each site contains

<!-- #include file="http://www.mydomain.co.uk/shell.asp" -->

shell.asp page on main site contains:

<HTML>
<BODY>
hello
</BODY>
</HTML>

Any ideas?

Thanks

Robbie

Jul 19 '05 #3
Hi Guys

No joy with the physical or virtual.

Basically both domains are hosted on the same ASP/IIS savvy ISP, but I think
they are different Virtual Servers.

I tried the physical and vritual path, but all I get is:

Active Server Pages error 'ASP 0126'
Include file not found

/default.asp, line 2

The include file 'xxxxxxxx\user\htdocs\shell.asp' was not found.

A lot of people have suggest the XMLhttp route, but this screen scrap won't
grab teh ASP placed fields will it?

Rgds

Robbie
"Mark Reichard" <ms******@hotmail.com> wrote in message
news:79**************************@posting.google.c om...
Robbie,

Not sure if this is possible without trying it, but you can try

<!-- #include virtual="http://www.mydomain.co.uk/shell.asp" -->

The other option is to set up a virtual directory in IIS that points
to the share you want to use.

HTH,
Mark

http://www.synapsecm.com - Simple, Multilingual Content Management
http://www.idataconsultingservices.com - Multilingual Web Development

"Astra" <in**@NoEmail.com> wrote in message news:<40**********@127.0.0.1>...
Hi All

Could you please confirm whether it is possible to include an include file, which is on another site, but still on the same set of web servers.

I want to upload a default paeg to a number of web sites for certain
domains, but I would like the majority of the code for this page to be on 1 central site so that if I need to do an update of this page I only need to
update it on one site.

The code I am using is as follows, but I keep getting a HTTP 500 error:

default.asp page on each site contains

<!-- #include file="http://www.mydomain.co.uk/shell.asp" -->

shell.asp page on main site contains:

<HTML>
<BODY>
hello
</BODY>
</HTML>

Any ideas?

Thanks

Robbie

Jul 19 '05 #4
> Basically both domains are hosted on the same ASP/IIS savvy ISP, but I
think
they are different Virtual Servers.


If they're on different servers, then I'm afraid you're out of luck.
Imagine if this was a possibility - I'd include all of google's scripts on
my own site and become rich. :)

Screen scraping pretty much just grabs the output, but I don't think that's
what you're looking for.

Randy
Jul 19 '05 #5
Thanks for the feedback guys.

Rgds

Robbie

Randy Rahbar <rvrahbar@_JUNKETY_JUNK_hotmail.com> wrote in message
news:eK**************@TK2MSFTNGP10.phx.gbl...
Basically both domains are hosted on the same ASP/IIS savvy ISP, but I think they are different Virtual Servers.


If they're on different servers, then I'm afraid you're out of luck.
Imagine if this was a possibility - I'd include all of google's scripts on
my own site and become rich. :)

Screen scraping pretty much just grabs the output, but I don't think that's
what you're looking for.

Randy


Jul 19 '05 #6

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

7
by: Nick Messick | last post by:
I'm trying to modify a banner display function so it can be including on remote websites. If I just include the file from a remote website the code isn't executed before it is put into the page. ...
11
by: cppaddict | last post by:
Say that your CustomClass.h header files requires #include <string> Now say that your CustomClass.cpp file also requires string. Is it good form to repeat the <string> include to make the...
10
by: EnjoyNews | last post by:
I have a php site I have an include line called "include 'Cookie.php';" In this Cookie.php file I have these codes. <?php $conn = mysql_connect("$db", "$user", "$pass");...
3
by: Will Chamberlain | last post by:
For the next couple of months I am hosting 2 domains with one host (Brinkster). What I have done is setup a page called default.aspx and a select case for SiteNameURL = ...
8
by: nrhayyal | last post by:
Hi c++ Gurus, Need your blessing. while testing few aspects with respect to header file inclusions, i observed few things which i would like to share with you. i have a file sqlca.h in which a...
3
by: IWP506 | last post by:
Hi I have a page that returns data based on the arguments provided to it in the URL. I want to show these results embedded in another page. Include('mypage.php?name=joe') fails with "failed to...
11
by: Gary Wessle | last post by:
Hi is it right to have a line like #include <path/to/header.hfor a library on my system, in my header file and use some functions provided by this library in the implementation file (file.cpp)...
1
by: Martin Mücke | last post by:
I got a website consisting of about 150 php pages. The site uses a frameless table based design. Header and menu are always the same and therefore should be extracted. At the moment I got a...
19
by: Earl Partridge | last post by:
FP 2000 I have a single Include file that I want to use on multiple sites. I'm trying to use the following (or some variation) but can't make it work. <!--#INCLUDE...
0
by: taylorcarr | last post by:
A Canon printer is a smart device known for being advanced, efficient, and reliable. It is designed for home, office, and hybrid workspace use and can also be used for a variety of purposes. However,...
0
by: Charles Arthur | last post by:
How do i turn on java script on a villaon, callus and itel keypad mobile phone
0
by: aa123db | last post by:
Variable and constants Use var or let for variables and const fror constants. Var foo ='bar'; Let foo ='bar';const baz ='bar'; Functions function $name$ ($parameters$) { } ...
0
by: ryjfgjl | last post by:
If we have dozens or hundreds of excel to import into the database, if we use the excel import function provided by database editors such as navicat, it will be extremely tedious and time-consuming...
0
by: ryjfgjl | last post by:
In our work, we often receive Excel tables with data in the same format. If we want to analyze these data, it can be difficult to analyze them because the data is spread across multiple Excel files...
0
by: emmanuelkatto | last post by:
Hi All, I am Emmanuel katto from Uganda. I want to ask what challenges you've faced while migrating a website to cloud. Please let me know. Thanks! Emmanuel
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
0
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
jinu1996
by: jinu1996 | last post by:
In today's digital age, having a compelling online presence is paramount for businesses aiming to thrive in a competitive landscape. At the heart of this digital strategy lies an intricately woven...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.