Go Back   PCMech Forums > Help & Discussion > Web Design / Development

Need Some Help? Type Your Keywords Here:

Reply
 
LinkBack Thread Tools Search this Thread Rate Thread Display Modes
Old 08-23-2002, 04:59 PM   #1
Member (9 bit)
 
Join Date: Dec 2001
Location: US
Posts: 468
Send a message via AIM to wilbasket23 Send a message via Yahoo to wilbasket23
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
wilbasket23 is offline   Reply With Quote
Old 08-23-2002, 05:41 PM   #2
aym
Registered User
 
aym's Avatar
 
Join Date: Nov 2001
Posts: 1,965
First, tell us what language you are using, HTML or something like PHP?
aym is offline   Reply With Quote
Old 08-23-2002, 06:31 PM   #3
Member (13 bit)
 
DrZaius's Avatar
 
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:
These are some links.

<?php include("links.inc"); ?>
Than the links.inc file should just look like this.
PHP Code:
<a href="link1.html">link 1</a>
<
a href="link2.html">link 2</a
So the final page will look like this.
PHP Code:
These are some links.

<
a href="link1.html">link 1</a>
<
a href="link2.html">link 2</a
DrZaius is offline   Reply With Quote
Old 08-24-2002, 10:47 AM   #4
Member (10 bit)
 
Join Date: Apr 2001
Location: Michigan
Posts: 850
Send a message via ICQ to HackinCowboy
This would also work. It's a standard HTML tag. (Remove spaces)
Code:
< !-- #include virtual="webfolder/file.inc" -- >
HackinCowboy is offline   Reply With Quote
Old 08-24-2002, 02:46 PM   #5
Member (9 bit)
 
Join Date: Dec 2001
Location: US
Posts: 468
Send a message via AIM to wilbasket23 Send a message via Yahoo to wilbasket23
Cool can u give me more example

hello hackincowboy, than you very much for ur information, but can u give me more example. thank you
wilbasket23 is offline   Reply With Quote
Old 08-24-2002, 02:49 PM   #6
Member (9 bit)
 
Join Date: Dec 2001
Location: US
Posts: 468
Send a message via AIM to wilbasket23 Send a message via Yahoo to wilbasket23
one more thing what is .inc file what does it stand for
wilbasket23 is offline   Reply With Quote
Old 08-24-2002, 02:53 PM   #7
Member (13 bit)
 
DrZaius's Avatar
 
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.
DrZaius is offline   Reply With Quote
Old 08-24-2002, 03:00 PM   #8
Member (9 bit)
 
Join Date: Dec 2001
Location: US
Posts: 468
Send a message via AIM to wilbasket23 Send a message via Yahoo to wilbasket23
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
wilbasket23 is offline   Reply With Quote
Old 08-24-2002, 03:13 PM   #9
Member (13 bit)
 
DrZaius's Avatar
 
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.
DrZaius is offline   Reply With Quote
Old 08-25-2002, 07:23 PM   #10
Member (9 bit)
 
Join Date: Dec 2001
Location: US
Posts: 468
Send a message via AIM to wilbasket23 Send a message via Yahoo to wilbasket23
Cool What is SHTML

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
wilbasket23 is offline   Reply With Quote
Old 08-26-2002, 05:14 PM   #11
aym
Registered User
 
aym's Avatar
 
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.
aym is offline   Reply With Quote
Reply

Bookmarks

Still Need Help? Type Your Keywords Here:


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes Rate This Thread
Rate This Thread:

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is On
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT -5. The time now is 12:22 PM.
Powered by vBulletin® Version 3.8.7
Copyright ©2000 - 2012, vBulletin Solutions, Inc.
SEO by vBSEO 3.6.0 PL2