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 gkittelson on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

problem with includes

Status
Not open for further replies.

vlitim

Programmer
Sep 2, 2000
393
GB
I have a directory structure where all asp pages call a pagesetup.inc file using:

<!--#include virtual=&quot;/includes/pageSetup.inc&quot;-->

then in that includes I am trying to call a file that is always in a directory above where the asp page is ie

<!--#include file=&quot;includes/topbar.inc&quot;-->

so the dir structure looks like

index.asp
includes
pagesetup.inc
testSubDir
includes
topbar.inc

the problem is I get an error saying:

The include file 'includes/topbar.inc' was not found.

can someone please help me as it is driving me crazy!

cheers
Tim

 
Hi Tim,

try this :
Code:
<!--#include file=&quot;../testSubDir/includes/topbar.inc&quot;-->

But better I think is to make one directory for all your include files.

Hope this helps you,
Erik
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top