|
|||||||
![]() |
|
|
LinkBack | Thread Tools | Search this Thread | Rate Thread | Display Modes |
|
|
#1 |
|
Member (9 bit)
|
Question again about template page?
ok, what is .inc file. so whenever i want the part of the page to be display on every single web pages. i have to save that part into a .inc file. does that part have to be in html tag format like
in the .inc file or just type in the approiate part of the tag into the .inc file and then using a include statment. by any chance can u give me an example, it is not very clear what you saying. thank you |
|
|
|
|
|
#2 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
First, tell us what language you are using, HTML or something like PHP?
|
|
|
|
|
|
#3 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
If you're using anything like PHP or ASP, the file you are including should be just the standard HTML code. For example, if you want to include some links:
PHP Code:
PHP Code:
PHP Code:
|
|
|
|
|
|
#4 |
|
Member (10 bit)
|
This would also work. It's a standard HTML tag. (Remove spaces)
Code:
< !-- #include virtual="webfolder/file.inc" -- > |
|
|
|
|
|
#5 |
|
Member (9 bit)
|
hello hackincowboy, than you very much for ur information, but can u give me more example. thank you
|
|
|
|
|
|
#6 |
|
Member (9 bit)
|
one more thing what is .inc file what does it stand for
|
|
|
|
|
|
#7 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
It stands for "include", but you can name it whatever you like, you can do include("file.txt"), it doesn't have to have a .inc extension.
|
|
|
|
|
|
#8 |
|
Member (9 bit)
|
how can i include the file in to my html pages, like i try to pu
but it doesn't work can u tell me |
|
|
|
|
|
#9 |
|
Member (13 bit)
Join Date: Jul 2000
Location: Fullerton, CA
Posts: 7,030
|
First, the server that is hosting your site must support either PHP or SHTML for those include methods to work.
|
|
|
|
|
|
#10 |
|
Member (9 bit)
|
hello, again, what is SHTML, so i need to have a server that support PHP or SHTML then the above method of template should be working, so every single page that will use the template layout have to be in PHP or SHTML supported server, right, or can be in regular server which doesn't support PHP or SHTML
|
|
|
|
|
|
#11 |
|
Registered User
Join Date: Nov 2001
Posts: 1,965
|
Only the page that contains "#include" should be in a server that supports SHTML, other pages can be in a nornal server.
|
|
|
|
![]() |
| Bookmarks |
| Thread Tools | Search this Thread |
| Display Modes | Rate This Thread |
|
|