473,765 Members | 1,940 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

#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.ht ml"-->
<!-- ----------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"><im g src="images/tophead.gif" width="700"
height="163" border="0" usemap="#Imagem ap1">
<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.htm l"
alt="Home" title="Home">
<area shape="poly"
coords="238,65, 122,6,103,21,77 ,106,70,142,154 ,138,187,136" href="index.htm l"
alt="Home" title="Home">
</map>
</td>
</tr>
</table>
Jul 20 '05 #1
3 1990
Mr. Clean <mr*****@protct orandgamble.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.ht ml"-->


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*****@protct orandgamble.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.ht ml"-->


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*****@protct orandgamble.com > wrote:
In article <2v************ *************** *****@4ax.com>, st***@pugh.net says...
Mr. Clean <mr*****@protct orandgamble.com > wrote:
>Why would this not work for me:
>
> <!--#include file="topnav.ht ml"-->


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
1513
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 sides do not. The way I am doing this is by having a top.php file and a bottom.php file and in my file index.php it would look like this: <?php include("top.php"); ?> Here is my index stuff... <?php
0
1995
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- 1) The CPU usage jumps up to 100% 2) The path for these include files is different according to the file that is calling server.execute, resulting in an invalid path
4
15053
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 standard include directories for files included as <file> but not for those included as "file". It's clear to me then that headers for the standard libraries (eg, iostream) should be included using the '#include <iostream>' form while header...
15
7407
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 : *************** consumer.php : <? include "inc.php" ?> inc.php : <? include "Common/functions.php" ?>
6
9579
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 i have also other functions defined in that file, i can use the global in all functions, but once i split up the rest of the function in other files, i cannot use the global? Isn't that strange, all the files compiled should be treated as one...
3
2711
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 directories contain a file named "cppfile1.h". In my main project I #include "cppfile1.h". I rely on the order of paths in additional include directories list to get file cppfile1.h from ProjectA and
7
2369
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 foo(FILE *i);
5
1214
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 construct properly includes the file I need to. And the included
7
2925
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
9566
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, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9393
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 effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
0
10007
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 tapestry of website design and digital marketing. It's not merely about having a website; it's about crafting an immersive digital experience that captivates audiences and drives business growth. The Art of Business Website Design Your website is...
1
9946
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 Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
9832
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
8830
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, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7371
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 presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
6646
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and then checking html paragraph one by one. At the time of converting from word file to html my equations which are in the word document file was convert into image. Globals.ThisAddIn.Application.ActiveDocument.Select();...
3
2800
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence can significantly impact your brand's success. BSMN Consultancy, a leader in Website Development in Toronto offers valuable insights into creating effective websites that not only look great but also perform exceptionally well. In this comprehensive...

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.