Jump to content

#include virtual

Recommended Posts

hiI have a problem with this lie of code in asp.<!--- #include virtual=/manager/utilities/config.asp -->This show a path.this path is true and I check it.but the server (inXP IIs or I server) return file not found!if I use <!--- #include File="/ . . ."it work.but I can'nt use .. because many of line in this project have #include virtual.where is problem When I give (file not found)I think (#include virtual) is not simple as file= methidethank for your help

Link to post
Share on other sites

"Include virtual" tells ASP where the include file is relative to the web root directory, "include file" tells ASP where the file is relative to the current directory. Use either of the following tags to include files in ASP:<!-- #include virtual="/includes/header.asp" -->(tells ASP where the file is located relative to the root web directory)<!-- #include file="../includes/header.asp" -->(tells ASP where the file is relative to its current directory)[bottom of page]http://www.hardcoder.com/scripting/php/include_files.php#asp

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...