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

.inc extension

Status
Not open for further replies.

aw23

Programmer
Nov 26, 2003
544
IL
Although I have programmed in ASPit has been a while and most of it has been in VBscript. I am now editing a site in asp with javascript. I have a simple question, I have searched but have not found anything.
The asp page has the following include file:

<!--#include file="include/bottom.inc"-->

The page that I think it is including is called default.asp (I had to do a search to find it.) There is no such file include/bottome.inc
My questions are 1.What is a .inc extension? 2. Whu is the file named something else? Is it named that somewhere on the page and I am not seeing it? Or am I not seeing the .inc file and that's not it? I don't think I have ever seen a .inc file before.
 
>1.What is a .inc extension?

The extension of a file that is intended to be included.

>2. Whu is the file named something else?

To clarify that it is not a .asp page of it's own.

I'd assume the .inc file is just an ordinary textfile containging asp stuff. But if you can't find it, well, then its strange...



/Per

www.perfnurt.se
 
includes can be any file extension,

I use a bottom include which I call footer, (footer.inc), all it is asp code that generates the correct foot of the page.
 
That's exactly what this is! an asp page that generates the correct foot. Why can't I find the .inc page?
 
If the file is not in the include directory and you cant find it in a search then it probably got deleted.

Is it an old reference that hasnt been deleted perhaps? Are the pages displaying the correct footer regardless?

Have you got a backup of the site that you can recover the file from?

Tony
_______________________________________________________________
 
There is no include directory that I can see but the pages are running fine (although the site is terrible)
 
are the pages terminated correctly?
eg)
Code:
...
</body>
</html>
That is almost certainly included in any footer include file so if they are not missing from the site pages then you probably dont need the missing file.

Tony
_______________________________________________________________
 
Whether or not it's visibl to you at te moment, there has to be a folder named "include" in the same folder as the asp file you found that include in. And inside the folder there has to be a file called bottom.inc.
If you include a file that doesn't exist you generally get a nasty error. Maybe try using the search built into explorer to search your whole web directory for bottom.inc?

The only ay i can see that folder being elsewheer is if there is a virtual folder defined in ISS that branches from the directory your currently looking in. You can determine if this is the case by opening the Intenet Services Manager from Administrative Tols menu and finding the folder that holds your current file. Toggle that folder open and look under it for the include folder. If it doesn't look like a normal little folder icon it's probably a virtual directory, so right click on it and pull upthe properties so you can see where it is really located.

As far as I know it has to be one or the other of these, no other real choice.

the quickest way to shortcut both methods mentioned above would be to simply add a Response.Write line to the file your currently looking at. Write out the Mapped Path to the bottom file like so:
Code:
Response.Write Server.MapPath("include/bottom.inc")

It should map it based on the position relative to your current folder and any virtual entries in the ISM.

-T

barcode_1.gif
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top