473,396 Members | 1,972 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,396 software developers and data experts.

Argrggh - host doesn't support server-side includes

I've just been caught out by a host that doesn't support #includes in my
ASPs. What's the best strategy for replacing these calls to files that
include everything from subs and functions, global constants, other
#includes, script directives, etc.??

Thanks,

Alan
Jul 19 '05 #1
8 1474
Find a new host ;o)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Alan Howard" <Xa***********@Xparadise.net.nzX> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
I've just been caught out by a host that doesn't support #includes in my
ASPs. What's the best strategy for replacing these calls to files that
include everything from subs and functions, global constants, other
#includes, script directives, etc.??

Thanks,

Alan

Jul 19 '05 #2
I knew that was coming :p

"Steven Burn" <pv*@noyb.com> wrote in message
news:uM**************@TK2MSFTNGP09.phx.gbl...
Find a new host ;o)

--

Regards

Steven Burn
Ur I.T. Mate Group
www.it-mate.co.uk

Keeping it FREE!
"Alan Howard" <Xa***********@Xparadise.net.nzX> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
I've just been caught out by a host that doesn't support #includes in my
ASPs. What's the best strategy for replacing these calls to files that
include everything from subs and functions, global constants, other
#includes, script directives, etc.??

Thanks,

Alan


Jul 19 '05 #3
Server.Execute, maybe. But you'll have to re-think your architecture quite
a bit.

I agree with Steven... find a new host. I can't think of a good reason for
a host to disable #includes, and I've never come across one that did so.

(What happens, by the way, when you run an ASP page with an #include
directive?)

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Alan Howard" <Xa***********@Xparadise.net.nzX> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
I've just been caught out by a host that doesn't support #includes in my
ASPs. What's the best strategy for replacing these calls to files that
include everything from subs and functions, global constants, other
#includes, script directives, etc.??

Thanks,

Alan

Jul 19 '05 #4
Thanks Aaron. I'm still trying to find out why they have SSI disabled - they
are one of the better hosts in NZ and this caught me completely by surprise.
(What happens, by the way, when you run an ASP page with an #include
directive?)
The #include directives are ignored and are treated like any other HTML
comment - i.e. they do nothing but are still viewable if you 'View Source'.

Cheers,

Alan

"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:es**************@TK2MSFTNGP10.phx.gbl... Server.Execute, maybe. But you'll have to re-think your architecture quite a bit.

I agree with Steven... find a new host. I can't think of a good reason for a host to disable #includes, and I've never come across one that did so.

(What happens, by the way, when you run an ASP page with an #include
directive?)

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Alan Howard" <Xa***********@Xparadise.net.nzX> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
I've just been caught out by a host that doesn't support #includes in my
ASPs. What's the best strategy for replacing these calls to files that
include everything from subs and functions, global constants, other
#includes, script directives, etc.??

Thanks,

Alan


Jul 19 '05 #5
> The #include directives are ignored and are treated like any other HTML
comment - i.e. they do nothing but are still viewable if you 'View
Source'.


Yuck. Tell them to fix it or you'll move on.

A
Jul 19 '05 #6
Any thoughts on how they've turned SSI off? I had a quick look but couldn't
see anything.

Alan
"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:es**************@TK2MSFTNGP10.phx.gbl...
Server.Execute, maybe. But you'll have to re-think your architecture quite a bit.

I agree with Steven... find a new host. I can't think of a good reason for a host to disable #includes, and I've never come across one that did so.

(What happens, by the way, when you run an ASP page with an #include
directive?)

--
Aaron Bertrand
SQL Server MVP
http://www.aspfaq.com/
"Alan Howard" <Xa***********@Xparadise.net.nzX> wrote in message
news:uZ**************@tk2msftngp13.phx.gbl...
I've just been caught out by a host that doesn't support #includes in my
ASPs. What's the best strategy for replacing these calls to files that
include everything from subs and functions, global constants, other
#includes, script directives, etc.??

Thanks,

Alan


Jul 19 '05 #7
> Any thoughts on how they've turned SSI off? I had a quick look but
couldn't
see anything.


To be honest, I don't know. It sounds more like ASP isn't processing, as I
know of no way to turn off the preprocessor that would catch the #include
file directive(s). Are you sure the extension is ASP, and that other ASP
code in the page is running? You can disable <!--#EXEC using the
SSIExecDisable key in the metabase. But you can't disable <!--#include
directives that I know of.

A
Jul 19 '05 #8
They've either 'turned SSI on' since I complained and asked for an
explanation, or it was never off in the first place and I was just dealing
with a misconfigured hosting account and a help-desk staffer that didn't
know what they were talking about. In either case, #includes seem to be
getting processed now so for the time-being, I'm happy.

Cheers,

Alan

"Aaron Bertrand [MVP]" <aa***@TRASHaspfaq.com> wrote in message
news:eU*****************@TK2MSFTNGP11.phx.gbl...
Any thoughts on how they've turned SSI off? I had a quick look but
couldn't
see anything.
To be honest, I don't know. It sounds more like ASP isn't processing, as

I know of no way to turn off the preprocessor that would catch the #include
file directive(s). Are you sure the extension is ASP, and that other ASP
code in the page is running? You can disable <!--#EXEC using the
SSIExecDisable key in the metabase. But you can't disable <!--#include
directives that I know of.

A

Jul 19 '05 #9

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

Similar topics

11
by: Peter D | last post by:
I wanted to add this method to my .asp page in order to dynamically choose a page based upon some selection criteria. It's in my .asp book and in the online reference. Yet when I use this...
5
by: Steven T. Hatton | last post by:
I've seen people here write that C++ doesn't support modules. What does that mean? 'Module' is a very nebulous term in my book. It probably means something quite different to me than what it does...
2
by: Filips Benoit | last post by:
Dear All, Access adp on sql-server 2000 After upgrating to A2003 updating data with 1 perticular combobox causes the program to hangs without any error-msg. Traying to change te combobox...
2
by: SmittyBroham | last post by:
Hello, I have a function that loops through 2 select lists and records the values of any hi-lighted options a user would have selected. It then sets 2 corresponding "hidden" form elements to the...
24
by: Benjamin Doyle | last post by:
In Chip Irek's "A PRIMER ON USING DB2 WITH .NET" (www.15seconds.com), he states that "...ODBC doesn't support DB2 stored procedures. So if you are building an application heavily dependant on...
0
by: Roman | last post by:
I'm trying to create the form which would allow data entry to the Client table, as well as modification and deletion of existing data rows. For some reason the DataGrid part of functionality stops...
5
by: John Olbert | last post by:
Subject: Error is Object doesn't support this property or method I am trying to pass a C# string under Vs2005 (Net2) to an Vb6 ActiveX Control. I get the following runtime error-- "Object...
0
by: sudhaoncyberworld | last post by:
Dear Techies, I do have small issue on connecting oracle server from .net This is the code snippet public string strConString = "Driver={Microsoft ODBC for...
0
AnuSumesh
by: AnuSumesh | last post by:
Hi All, I am using msrdp.cab for calling terminal services. When i am running application on server then it is working fine 'n' calling Remote Desktop for server. But when i am running the...
1
by: pankajprakash | last post by:
Hi, I have an asp.net application and I have used Ajax. I have implemented the function in code behind and calling in the javascript function during the form load time then it shows the "Object...
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: 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
0
BarryA
by: BarryA | last post by:
What are the essential steps and strategies outlined in the Data Structures and Algorithms (DSA) roadmap for aspiring data scientists? How can individuals effectively utilize this roadmap to progress...
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
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
0
Oralloy
by: Oralloy | last post by:
Hello folks, I am unable to find appropriate documentation on the type promotion of bit-fields when using the generalised comparison operator "<=>". The problem is that using the GNU compilers,...
0
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...

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.