Help | Site Map
Connecting Tech Pros Worldwide
 
 
LinkBack Thread Tools
  #1  
Old July 19th, 2005, 11:39 AM
Astra
Guest
 
Posts: n/a
Default 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


  #2  
Old July 19th, 2005, 11:39 AM
Randy Rahbar
Guest
 
Posts: n/a
Default Re: Including an include file from another site

> <!-- #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


  #3  
Old July 19th, 2005, 11:40 AM
Mark Reichard
Guest
 
Posts: n/a
Default Re: Including an include file from another site

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" <info@NoEmail.com> wrote in message news:<4020bb02$1_4@127.0.0.1>...[color=blue]
> 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[/color]
  #4  
Old July 19th, 2005, 11:41 AM
Astra
Guest
 
Posts: n/a
Default Re: Including an include file from another site

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" <mspidc01@hotmail.com> wrote in message
news:79ee06b6.0402040707.289ac5bf@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" <info@NoEmail.com> wrote in message news:<4020bb02$1_4@127.0.0.1>...[color=blue]
> Hi All
>
> Could you please confirm whether it is possible to include an include[/color]
file,[color=blue]
> 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[/color]
1[color=blue]
> 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[/color]


  #5  
Old July 19th, 2005, 11:41 AM
Randy Rahbar
Guest
 
Posts: n/a
Default Re: Including an include file from another site

> Basically both domains are hosted on the same ASP/IIS savvy ISP, but I
think[color=blue]
> they are different Virtual Servers.[/color]

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


  #6  
Old July 19th, 2005, 11:42 AM
Laphan
Guest
 
Posts: n/a
Default Re: Including an include file from another site

Thanks for the feedback guys.

Rgds

Robbie

Randy Rahbar <rvrahbar@_JUNKETY_JUNK_hotmail.com> wrote in message
news:eKxSr8#6DHA.2480@TK2MSFTNGP10.phx.gbl...[color=blue]
> Basically both domains are hosted on the same ASP/IIS savvy ISP, but I[/color]
think[color=blue]
> they are different Virtual Servers.[/color]

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




 

Bookmarks

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

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

What is Bytes?

We are a network of experts and professionals in IT and software development that help one another with answers to tough questions and share insights. Get the best answers to your questions from over network members.
Post your question now . . .
It's fast and it's free

Popular Articles