Welcome to the JaguarPC Community
JaguarPC
Sales: (888) 338-5261
Support: (888)-551-3050
Results 1 to 6 of 6

This is a discussion on #include question in the Shared & Semi-Dedicated forum
I got an include statement to work on another hosting companies linux system by putting <!-- #include file="burrito_shack_header.html" --> in the first line of the ...

  1. #1
    JPC Member
    Join Date
    Jan 2003
    Location
    San Antonio
    Posts
    47

    #include question

    I got an include statement to work on another hosting companies linux system by putting <!-- #include file="burrito_shack_header.html" --> in the first line of the file..

    but on JPC server, I can not get the following to work:

    <!-- #include file="ww_header.stm" -->

    nor <!-- #include file="ww_header.html" -->


    where ww_header.html (or .stm) is a file in the sub-directory of the my server...

    I can not get it to work from http://woodwerks.qsdnet.com/index.html
    or www.woodwerks.biz
    or http://www.qsdnet.com/woodwerks/index.html


    any help is much appreciated.. and yea, I don't know what I'm doing in case you are wondering...

    h e l p !!

    thanks

  2. #2
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    Try <!-- #include virtual="/ww_header.htm" -->

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  3. #3
    JPC Member
    Join Date
    Jan 2003
    Location
    San Antonio
    Posts
    47

    ssi htaccess?

    thanks Jason.. that didn't work, but caused me to continue to investigate..

    I found some info on htaccess file... and the addhandler directive ... and the XBitHack on directive ... neither of which I have a clue about.

    it seems the easiest would be to set the addhandler and have the filetype shtml ...

    I didn't understand what I read about XBitHack : something regarding windows not having an execute bit to set ... is that a windows server they are talking about, do you think? I would thing the web site visitors browser would not need to now about execute bits, so it must be the server... in which case we are not on windows...

    thanks for your time and help.

    David

  4. #4
    Community Leader jason's Avatar
    Join Date
    Sep 2001
    Location
    Rochester, NY
    Posts
    6,003
    What kind of file are you trying to insert the file into? It has to be a .shtml file that contains the <!-- #include --> directive. Otherwise the server will see it as an ordinary html file and not attempt to parse it. It is possible to use CPanel to change the behavior of regular html files if, for instance you are adding an include to every page on your site and you don't want to change every page from .html to .shtml. To do it, go to "Apache Handlers" in CP and enter "server-parsed" for the handler and ".htm" or whatever you're using as the extension.

    I'm not familiar with XBitHack, but it sounds like something for windows servers only. All of the instructions in .htaccess files are executed server side. The browser has no idea about what's in your .htaccess, nor does it care.

    --Jason
    Jason Pitoniak
    Interbrite Communications
    www.interbrite.com www.kodiakskorner.com

  5. #5
    JPC Member
    Join Date
    Jan 2003
    Location
    San Antonio
    Posts
    47
    thanks!! I think you just gave me the answer.. I have the "calling" file (with the include) in it just as .html and now the htaccess has directives to parse .shtml files.. so you hit it I think..

    will check it now with the calling file named .shtml...

  6. #6
    JPC Member
    Join Date
    Jan 2003
    Location
    San Antonio
    Posts
    47
    yes that was it..

    I needed the directives in the htaccess file... and then I needed to change the index.html to index.shtml for it to get parsed.

    thanks very much.

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •