PDA

View Full Version : Including file from an upper directory


Lotem4Ever
06-11-2009, 01:51 PM
Hey guys,
I'm doing a school project which include HTML, JS and ASP.
Now, I have in the root directory a "includes" directory and an "admin" directory.
I want a file from the "admin" directory to include the config i created at "includes".
Thanks.

Old Pedant
06-12-2009, 03:57 AM
http://msdn.microsoft.com/en-us/library/ms525940.aspx

<!-- #include virtual="/includes/xxx.asp" -->

shakir
06-23-2009, 02:15 PM
Old Pedant said the4 correct answer.. "/" reads from the root directory.. otherwise u has to use "../include"