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

#include usage?

Why would this not work for me:

<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td>
<!-- ----------Begin Top Navigation Include File---------- -->
<!--#include file="topnav.html"-->
<!-- ----------End Top Navigation Include File---------- -->
</td>
</tr>
</table>
Contents of topnav.html:
<table border="0" cellpadding="0" cellspacing="0" width="100%">
<tr>
<td colspan="6"><img src="images/tophead.gif" width="700"
height="163" border="0" usemap="#Imagemap1">
<map name="Imagemap1">
<area shape="rect" coords="580,15,696,82"
href="http://linkedsite.com">
<area shape="rect" coords="271,69,452,83" href="index.html"
alt="Home" title="Home">
<area shape="poly"
coords="238,65,122,6,103,21,77,106,70,142,154,138, 187,136" href="index.html"
alt="Home" title="Home">
</map>
</td>
</tr>
</table>
Jul 20 '05 #1
3 1973
Mr. Clean <mr*****@protctorandgamble.com> wrote:
Why would this not work for me:

<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td>
Now this is a really pointless table isn't it?
<!-- ----------Begin Top Navigation Include File---------- -->
Do you realise that the words Begin Top Navigation Include File are
not actually commented out?
You open and close three sets of comments before those words and
another three sets after them. Never try to include multiple strings
of - inside comments.
<!--#include file="topnav.html"-->


Are SSI enabled on your server?
Do you have to call your file .shtml for your server to parse SSI?

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #2
In article <2v********************************@4ax.com>, st***@pugh.net says...
Mr. Clean <mr*****@protctorandgamble.com> wrote:
Why would this not work for me:

<table border="0" cellpadding="0" cellspacing="0" width="700">
<tr>
<td>


Now this is a really pointless table isn't it?
<!-- ----------Begin Top Navigation Include File---------- -->


Do you realise that the words Begin Top Navigation Include File are
not actually commented out?
You open and close three sets of comments before those words and
another three sets after them. Never try to include multiple strings
of - inside comments.
<!--#include file="topnav.html"-->


Are SSI enabled on your server?
Do you have to call your file .shtml for your server to parse SSI?

Steve

I forgot about the '--' thing in HTML Comments...DUH!!!

Don't know about the SSI stuff. Would that be required
to get this to work?
Jul 20 '05 #3
Mr. Clean <mr*****@protctorandgamble.com> wrote:
In article <2v********************************@4ax.com>, st***@pugh.net says...
Mr. Clean <mr*****@protctorandgamble.com> wrote:
>Why would this not work for me:
>
> <!--#include file="topnav.html"-->


Are SSI enabled on your server?
Do you have to call your file .shtml for your server to parse SSI?

Don't know about the SSI stuff. Would that be required
to get this to work?


Yes. <!--#include file="..." --> is a Server Side Include. If SSI
isn't enabled on your server than it won't work.

Steve

--
"My theories appal you, my heresies outrage you,
I never answer letters and you don't like my tie." - The Doctor

Steve Pugh <st***@pugh.net> <http://steve.pugh.net/>
Jul 20 '05 #4

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

Similar topics

5
by: mdawg414 | last post by:
Hey guys, please bear with me cause I am a major newbie at php. I am building a website and have it so that the content in the middle of the page changes but the banner on top and the panels on the...
0
by: Wilk Teverbaugh | last post by:
I've got an include file inside each page throughout my site. Inside this include file I'm running server.execute to include other pages based on a condition (userID). The problem has two parts-...
4
by: Exits Funnel | last post by:
Hello, I'm slightly confused about when to use parens around #included files and when to use angle brackets. I understand (I think) that the difference is that the compiler will search in its...
15
by: tom pester | last post by:
Hi, Im new to php and have a background in asp. All the help is very much appreciated. today I was using the include function in a file that itself gets included : ***************...
6
by: atv | last post by:
Alright, i have some questions concerning include files en global variables.I hope someone is willing to answer these. 1).Why is it that if i define a global variable in a file, say main.c, and...
3
by: Arpi Jakab | last post by:
I have a main project that depends on projects A and B. The main project's additional include directories list is: ...\ProjectA\Dist\Include ...\ProjectB\Dist\Include Each of the include...
7
by: Bill Pursell | last post by:
I read recently (can't remember if it was on this group or elsewhere) that it is a bad idea to write a header file this way: #ifndef FOO_HDR #define FOO_HDR 1 #include <stdio.h> int...
5
by: Victor | last post by:
Hi everybody, could anybody explain the following phenomen : I have this line in my project : include "http://".$domain."/help/".$language."/".$defaultIndex."/".$help.".php"; This...
7
by: Giancarlo Bassi | last post by:
Please, what are here the 11 include files (found over the internet)? */mozzarella.c /* #include #include #include #include #include #include
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
1
by: nemocccc | last post by:
hello, everyone, I want to develop a software for my android phone for daily needs, any suggestions?
1
by: Sonnysonu | last post by:
This is the data of csv file 1 2 3 1 2 3 1 2 3 1 2 3 2 3 2 3 3 the lengths should be different i have to store the data by column-wise with in the specific length. suppose the i have to...
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
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,...
0
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...

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.