Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations wOOdy-Soft on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

Do include files have to be on the same server. 1

Status
Not open for further replies.

Jeremy74

IS-IT--Management
Nov 21, 2001
56
GB
I have built a website with one table on the page displaying an include file. The Include file is saved in the same location as the website and it works okay locally. However when I upload the site the include file is getting pulled of another server, instead of

"#include file="include/incudepage.asp"
its
#include file="
The second one does not work, any ideas. I need it to work as the third party process this part.

Cheers

Jeremy
 
huh im kinda confused, i would say that an include file must be in your directory.

[Hammer]
Nike Failed Slogans -- "Just Don't Do It!"
 
ASP includes HAVE to be on the same server if the page has an .asp extension, Having this extension tells the server it is executable code therefore is processed server-side.

If the file does not have any asp code in it use a htm\html extension this will then be processed client-side and can be on a remote third party server (geocities and the like excluded).


Chris.


Indifference will be the downfall of mankind, but who cares?
 
don't over_use SSI it will slow down the server...however as Jesus said you can use some html file as a headers and footers and if those files are discovered by a user then no harm is done and ASP code is not executed.

and yes:ASP includes HAVE to be on the same server :
otherwise u can pick up small include from other sites and have them 'host' your files....now that would be nice for u but 'host' *might not appreciate it :)
all the best!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top