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

Question with include file

Status
Not open for further replies.

EdRev

Programmer
Aug 29, 2000
510
US
I have an asp page that has an include file from another sub-directory.

When I include the whole path name (i.e\dir\subdir1\incfile.asp) on this asp, I got an error message that says the include file cannot start with '\'.If I remove the '\', the page cannot find the file.

The asp page's directory is \dir\subdir2\asppage.asp.

Any help will be greatly appreciated.
 
put the path as :

"../subdir2/incfile.asp"


../ takes you back a directory
you should not use \ , this is for local files, when specifying dir structure on the web use /
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top