Web Wiz - Green Windows Web Hosting

  New Posts New Posts RSS Feed - How to include files??
  FAQ FAQ  Forum Search   Events   Register Register  Login Login

Topic ClosedHow to include files??

 Post Reply Post Reply
Author
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Direct Link To This Post Topic: How to include files??
    Posted: 24 December 2004 at 4:58pm
I have files named top_menu.inc and left_menu.inc so that to reduce the work when I change the navigation structure of my website. I am including top_menu.inc file as

<!--#include file="top_menu.inc"-->
but contents of this file are not displaying on the page in which it is inserted. If there is a missing relative or virtual path of file, please tell me how can I give virtual or relative path. Thanx
The Judgement Day
Back to Top
Mart View Drop Down
Senior Member
Senior Member
Avatar

Joined: 30 November 2002
Status: Offline
Points: 2304
Direct Link To This Post Posted: 24 December 2004 at 5:03pm
<!--#include virtual="top_menu.inc"-->
Back to Top
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Direct Link To This Post Posted: 24 December 2004 at 5:26pm
still not working...in the browser-> view source, the tag is present there as  <!--#include virtual="top_menu.inc"--> nothing is done. any other solution??
The Judgement Day
Back to Top
dj air View Drop Down
Senior Member
Senior Member
Avatar

Joined: 05 April 2002
Location: United Kingdom
Status: Offline
Points: 3627
Direct Link To This Post Posted: 24 December 2004 at 6:11pm
this is a cut and past so should work.

<!--#include file="functions/functions_format_post.asp" -->

the only other thing i can think is .. have you got SSI enabled on your host.

should have but some hosts allow you to disable them.
Back to Top
PrivateEye View Drop Down
Groupie
Groupie
Avatar

Joined: 21 March 2003
Location: United Kingdom
Status: Offline
Points: 168
Direct Link To This Post Posted: 24 December 2004 at 6:18pm
Ok, but I am using it on my local server, with Win 2000 Professional and IIS 5. Would you pls tell me how can I check SSI on my local system.
The Judgement Day
Back to Top
dpyers View Drop Down
Senior Member
Senior Member


Joined: 12 May 2003
Status: Offline
Points: 3937
Direct Link To This Post Posted: 24 December 2004 at 11:26pm
I use include virtual instead of include file
<!--#include virtual="/somedirectory/top_menu.inc"-->
Where the first / is the root directory. That way I can use the same include in any subdirectory without having to change the relative file path.

Lead me not into temptation... I know the short cut, follow me.
Back to Top
Agni View Drop Down
Newbie
Newbie


Joined: 02 July 2004
Location: Greece
Status: Offline
Points: 37
Direct Link To This Post Posted: 31 December 2004 at 6:28am
Just a thought, but make sure you are not tring to using the 'include' statement within the asp brackets : <% %>

Nathan
Back to Top
 Post Reply Post Reply

Forum Jump Forum Permissions View Drop Down

Forum Software by Web Wiz Forums® version 12.08
Copyright ©2001-2026 Web Wiz Ltd.


Become a Fan on Facebook Follow us on X Connect with us on LinkedIn Web Wiz Blogs
About Web Wiz | Contact Web Wiz | Terms & Conditions | Cookies | Privacy Notice

Web Wiz is the trading name of Web Wiz Ltd. Company registration No. 05977755. Registered in England and Wales.
Registered office: Web Wiz Ltd, Unit 18, The Glenmore Centre, Fancy Road, Poole, Dorset, BH12 4FB, UK.

Prices exclude VAT at 20% unless otherwise stated. VAT No. GB988999105 - $, € prices shown as a guideline only.

Copyright ©2001-2026 Web Wiz Ltd. All rights reserved.