Forum Moderators: open

Message Too Old, No Replies

include file

code?

         

2_much

8:47 am on Jan 31, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



I was doing some research on server side scripting and it would be great if anybody can help me get my concept clear about include files.

In html we could write up a code for include file i.e.
<!--# include virtual="a.txt"-->

Can somebody tell me if this is Search engine friendly especially in Google. This code saves up lot of repetation in each page of the site and i was thinking of implementing this in one of my sites. Is it a good idea to include a file in an html code??

Or does anyone know of a better way to include file in an html code?

click watcher

10:46 am on Jan 31, 2002 (gmt 0)



>>>Can somebody tell me if this is Search engine friendly especially in Google.

because it is included by the server before serving the page the SE or any other viewer would never know it wasn't hard coded into the page, so it is the same as writing the html snippet on every page.

if you are running from a windows server then
server.execute
(asp3 only)
does a similiar thing except that it will execute code from the "executed file" as well, the snag being you need an .asp filename, although i have no problem with this others around here say there could be a penalty.

Xoc

8:38 am on Feb 1, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



There are no penalties for .asp pages unless you use a querystring on a search engine that doesn't deal with querystrings.

Marcia

8:45 am on Feb 1, 2002 (gmt 0)

WebmasterWorld Senior Member 10+ Year Member



<!--# include virtual="a.txt"-->

<!--# include virtual="a.txt" -->

Also, don't forget to use that extra space after the end quote.