Cannot Preview Server Side Includes in Browser

I am working on building a new site using server side
includes for the main header graphic and menu items. For testing
purposes, I created an .html file with one <div> tag
containing a single graphic and an .shtml file with the server side
include code placed in the <head> area. (Doesn't seem to work
if I place it anywhere within the <body> tag... not sure
why). At any rate, I can see the SSI in the design view of my
document, but cannot see it whenever I go to preview the page in my
browser (Firefox 2.0.0.3). Everything works fine if I upload the
files to my Web server and view them that way, but why can't I see
the SSI when working on my local files? The Dreamweaver help files
explain that I should be able to do so, but it's just not working.
Well, I'm now at a loss and cannot figure out if I'm doing
something wrong of if this is just a bug of some kind. Can anyone
help me to solve this problem so that I can get back on track?
Much appreciated,
~Greg

>I am working on building a new site using server side
includes for the main
> header graphic and menu items. For testing purposes, I
created an .html
> file
> with one <div> tag containing a single graphic and
an .shtml file with the
> server side include code placed in the <head>
area.
This is not going to work at all. You cannot place body HTML
in the <head>
region.
Murray --- ICQ 71997575
Adobe Community Expert
(If you *MUST* email me, don't LAUGH when you do so!)
==================
http://www.dreamweavermx-templates.com
- Template Triage!
http://www.projectseven.com/go
- DW FAQs, Tutorials & Resources
http://www.dwfaq.com - DW FAQs,
Tutorials & Resources
http://www.macromedia.com/support/search/
- Macromedia (MM) Technotes
==================
"Myrrhlin225" <[email protected]> wrote in
message
news:f1hdmh$clh$[email protected]..
>I am working on building a new site using server side
includes for the main
> header graphic and menu items. For testing purposes, I
created an .html
> file
> with one <div> tag containing a single graphic and
an .shtml file with the
> server side include code placed in the <head>
area. (Doesn't seem to work
> if I
> place it anywhere within the <body> tag... not
sure why). At any rate, I
> can
> see the SSI in the design view of my document, but
cannot see it whenever
> I go
> to preview the page in my browser (Firefox 2.0.0.3).
Everything works
> fine if
> I upload the files to my Web server and view them that
way, but why can't
> I
> see the SSI when working on my local files? The
Dreamweaver help files
> explain
> that I should be able to do so, but it's just not
working. Well, I'm now
> at a
> loss and cannot figure out if I'm doing something wrong
of if this is just
> a
> bug of some kind. Can anyone help me to solve this
problem so that I can
> get
> back on track?
>
> Much appreciated,
> ~Greg
>
>

Similar Messages

  • Spry Widget as a Server Side Include

    I am new to using SSI. I guess one question is: does the
    include have to be saved as a .shtm or .shtml file? I am trying to
    take a Spry Navigation bar and use it as an include in a site I am
    building. I have saved it as a .html file and a .shtml file, but
    neither is working. It shows up in design view, but not preview in
    browser view. Here is the code of the SSI:
    <script src="../SpryAssets/SpryMenuBar.js"
    type="text/javascript"></script>
    <link href="../SpryAssets/SpryMenuBarVertical.css"
    rel="stylesheet" type="text/css" />
    <div>
    <ul id="MenuBar1" class="MenuBarHorizontal">
    <li><a href="
    http://www.j-boysentertainment.com">Home</a>
    </li>
    <li><a href="#"
    class="MenuBarItemSubmenu">Projects</a>
    <ul>
    <li><a href="../pamperzpro.html">Pamperz
    Pro</a></li>
    </ul>
    </li>
    <li><a class="MenuBarItemSubmenu"
    href="#">Creative Team</a>
    <ul>
    <li><a href="#">Jeff Reed</a> </li>
    <li><a href="#">John
    Elliott</a></li>
    <li><a href="#">Jack Kelly</a></li>
    <li><a href="#">J. Skylar
    Testa</a></li>
    <li><a href="#">Jonathan
    Perkins</a></li>
    </ul>
    </li>
    <li><a href="#">Connect</a></li>
    </ul>
    </div>
    <script type="text/javascript">
    <!--
    var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
    {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
    imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    //-->
    </script>
    Does anyone see what I am doing wrong? Also, when I insert it
    as a SSI, does it matter if it is a file or a virtual?

    Create a page that contains ONLY this -
    <p>woohoo</p>
    and save it as woohoo.monkeybutt.
    Then create another page, click in the Design view, and
    insert a server-side
    include. Browse to and select woohoo.monkeybutt.
    Save this new page as "page.shtml".
    Preview it in the browser (with temp files enabled in your
    PREFERENCES).
    'nuff said?
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "jp3rks" <[email protected]> wrote in
    message
    news:[email protected]...
    >I am new to using SSI. I guess one question is: does the
    include have to be
    > saved as a .shtm or .shtml file? I am trying to take a
    Spry Navigation
    > bar and
    > use it as an include in a site I am building. I have
    saved it as a .html
    > file
    > and a .shtml file, but neither is working. It shows up
    in design view,
    > but not
    > preview in browser view. Here is the code of the SSI:
    >
    >
    > <script src="../SpryAssets/SpryMenuBar.js"
    > type="text/javascript"></script>
    > <link href="../SpryAssets/SpryMenuBarVertical.css"
    rel="stylesheet"
    > type="text/css" />
    > <div>
    > <ul id="MenuBar1" class="MenuBarHorizontal">
    >
    <a href="
    http://www.j-boysentertainment.com">Home</a>
    </li>
    >
    <a href="#" class="MenuBarItemSubmenu">Projects</a>
    >
    >
    <a href="../pamperzpro.html">Pamperz
    Pro</a></li>
    >
    > </li>
    >
    <a class="MenuBarItemSubmenu" href="#">Creative
    Team</a>
    >
    >
    <a href="#">Jeff Reed</a> </li>
    >
    <a href="#">John Elliott</a></li>
    >
    <a href="#">Jack Kelly</a></li>
    >
    <a href="#">J. Skylar Testa</a></li>
    >
    <a href="#">Jonathan Perkins</a></li>
    >
    > </li>
    >
    <a href="#">Connect</a></li>
    >
    > </div>
    > <script type="text/javascript">
    > <!--
    > var MenuBar1 = new Spry.Widget.MenuBar("MenuBar1",
    > {imgDown:"SpryAssets/SpryMenuBarDownHover.gif",
    > imgRight:"SpryAssets/SpryMenuBarRightHover.gif"});
    > //-->
    > </script>
    >
    > Does anyone see what I am doing wrong? Also, when I
    insert it as a SSI,
    > does
    > it matter if it is a file or a virtual?
    >

  • Converting Library Items to Server Side Includes

    Can someone direct me to a resource (Adobe or other) that
    explains how a LI can be converted into a SSI? Thanks in advance.
    tjinjax

    Open the *.lbi file, and save it wherever you want the
    includes to be saved
    with whatever extension you want your includes to have.
    Open the parent page, and find the code that represents the
    Library item.
    Select EVERYTHING between -
    this: <!-- #BeginLibraryItem "/Library/Address.lbi" -->
    and this: <!-- #EndLibraryItem -->
    INCLUDING those two lines.
    Click on the include icon on the Common tab on the toolbar,
    or use INSERT |
    Server Side Include. Browse to, and select the file in your
    list of include
    files. Click OK.
    You're done.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "tjinjax" <[email protected]> wrote in
    message
    news:f49osl$ejk$[email protected]..
    > Can someone direct me to a resource (Adobe or other)
    that explains how a
    > LI can be converted into a SSI? Thanks in advance.
    > tjinjax

  • Server Side Include not functioning the same across website

    digitaldealershipsystem.com
    <!--#include file="/includes/navigation.php" -->
    ** this is the navigation pulldown.
    This works on most of the main pages
    When you go to
    digitaldealershipsystem.com/live.html
    digitaldealershipsystem.com/live2.html
    digitaldealershipsystem.com/live3.html
    The same is included but does not work on Chrome, but does work on Firefox
    To restate, the naming is the same on all web pages, and it works on Chrome -- except for these "live" pages
    On Firefox, they work on all pages, included live pages
    For testing purposes on the following page, I tried 'virtual' file and that did not change the results in either browser
    digitaldealershipsystem.com/live4.html
    My thoughts:
    If there is a conflict on the page, then why only is Chrome being effected
    Any ideas?

    If clearing the cache does not help, then check your code validation - you have several errors. Server side includes are browser independant - because they are assembled on the server, not the client. If there's a difference in rendering between browsers, it has to do with your html/css and has nothing to do with SSI.

  • Dreamweaver previews first Server Side Include Only (SSI)

    Dreamweaver CC and 2014 preview the first Server Side Include (SSI) only, even if the Adobe extension is installed (Using the SSI extension in Dreamweaver to create page headers | Adobe Developer Connection)
    How do I set Dreamweaver to preview multiple (more than one) SSI's?
    Example Code:
    <!doctype html>
    <html>
    <head>
    <meta charset="utf-8">
    <title>Untitled Document</title>
    </head>
    <body>
    <!--#include virtual="/content.shtml" -->
    <!--#include virtual="/content2.shtml" -->
    </body>
    </html>
    The code above will preview the text in "Content.shtml" but will not display the text in "content2.shtml".
    For troubleshooting purposes, I have reduced the content in each file to only single lines of basic text.
    Please advise. Thanks.
    Update:
    Dreamweaver Live View will show all of the server side includes. However the "Design View" and "Preview in Browser" will only show the one ssi.
    The following Preference settings are enabled:
    -Preview using temporary file
    -Show contents of included file
    Update 2:
    I discovered that server side includes have been removed from the Dreamweaver interface, inferred from this article: A Look at the Modernized Dreamweaver CC : Adobe Dreamweaver Team Blog. If Server Side Includes were removed, can they be added again using the Server Behavior extension?

    The issue is fixed in Dreamweaver 2014.1

  • Server side include does not appear in browser

    I've imbedded a server side include within an html file. I
    can see it in the Dreamweaver design previewer, but it does not
    appear when displaying the html in a browser. I've tried saving the
    included file as "html", "htm", "shtml", and "shtm". Nothing seems
    to work.
    Any guesses?

    On apache, you have to use either shtm(l), or PHP. And in the
    event that
    you use the latter, the include directives must be PHP
    includes, not HTML
    includes, e.g., this -
    <?php require('includes/foo.php') ?>
    not this -
    <!--#include file="includes/foo.inc" -->
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Dave Bar" <[email protected]> wrote in message
    news:frbps3$f6o$[email protected]..
    > Interesting you mention this, I was just experementing
    with this today.
    > I traditionally use .asp and IIS when using Include
    techniques.
    >
    > I have a client on an apache server, and they can't run
    asp, so I had to
    > test using html.
    >
    > This is what I found.
    > Since I'm running IIS, I had to use shtml (their apache
    server may run it
    > with regular html).
    >
    > I also had to make sure I was using the IIS Localhost in
    my url.
    > so this worked:
    >
    http://localhost/tests_and_examples/TEMP/TestInclude.shtml
    >
    > While this did not:
    >
    http://localhost/tests_and_examples/TEMP/TestInclude.html
    (notice the
    > missing s in shtml)
    >
    > And this did not:
    >
    file:///C:/Inetpub/wwwroot/tests_and_examples/TEMP/TestInclude.shtml
    > (Notice a regular file:/// instead of using IIS
    localhost)
    >
    > Hope that helps
    > -Dave
    >
    > "rsimmons1957" <[email protected]>
    wrote in message
    > news:frboib$dn5$[email protected]..
    >> I've imbedded a server side include within an html
    file. I can see it in
    >> the
    >> Dreamweaver design previewer, but it does not appear
    when displaying the
    >> html
    >> in a browser. I've tried saving the included file as
    "html", "htm",
    >> "shtml",
    >> and "shtm". Nothing seems to work.
    >>
    >> Any guesses?
    >>
    >
    >

  • Server side includes vs Library assets?

    I like server side include because I just see a single line referring to the included file, and that keep my code free of 'irrelevant' detaiuls.
    However, I cannot preview my program in a local browser (because the include takes place on the server, and not locally on my machine).
    Is there a compromise?  Is there a way to NOT have Dreamweaver CS4 (on my iMac) expand the included library code?

    I am not using anyPHP in this project, so I do not specify it.  I tried specifying in, but that made no difference.
    http://localhost shows me the default index file that is in //Application/MASMP/htdocs (sonce I used MAMP to get PHP up and running).
    The issue seems to be to do with relative paths.
    On my remote server I am installig the files into a folder named /NWC/  The domain name (www.BilliantlySimple.com) is set up to point to that folder.
    I can see the page EXACTLY as I would expect it to be in design view, HOWEVER, when I go to live view it is not finding all of the files that it need to include.  Id does find the such as the CSS file (included with the line: <link href="../_css/Test.css" rel="stylesheet" type="text/css" media="screen" />) BUT any image files included for, say background-image: url(../_images/bg_dot.gif); it does NOT find (even though images in the page itself it can find!)
    I  am using Pop Magic Menus 2 and including those with these lines:
         <link href="../_includes/p7pmm/p7PMMh07.css" rel="stylesheet" type="text/css" media="all" />
         <script type="text/javascript" src="../_includes/p7pmm/p7PMMscripts.js"></script>
    BUT it does NOT find the files to include ONLY in Live view!!!!
    You can see what I am working on at http://www.BilliantlySimple.com but since I cannot use Live view to see the finished result I have to put the code onto the server to see how it is behaving.

  • Server-Side Include Issue - Please Help

    I am having trouble using server-side includes in
    Dreamweaver. When I use the SSI to insert the header file, the
    header document shows up on the page in design view, but I cannot
    click anything. The cursor turns into a "no sign" no matter where
    it is on the page. I cannot see anything but the header document,
    and I cannot click outside of it or anywhere else in design view.
    When I test the whole document in a web browser it actually seems
    to work just fine. I see the header and the other text on the page
    (unlike in dreamweaver, I cannot see anything but the header). Also
    in Dreamweaver code view, the php tags and the included filename
    are in red. This is the code for the test document:

    On Wed, 7 Mar 2007 04:02:29 +0000 (UTC), "AngryCloud"
    <[email protected]> wrote:
    > <?php include("header.php"); ?>
    What does the code look like in header.php? Does it have
    <html>, <head>
    and <body> tags? It should not.
    Gary

  • Server Side Includes

    I would like to create a website that allows the business owner to post information by simply updating a Word or Excel document and uploading it to the server.  I'm using a Server Side Include to bring in the .doc and .xls files.  It kind of works... I can see the data from these files, but the formatting is crazy and includes a bunch of extra characters.  I've set the extension as .shtml and selected "virtual" for the Apache server.
    I've searched the forums for an answer, but it doesn't look as this has been addressed.  Thanks in advance for you time!

    Ah, very good point.  I've actually tried that with some sample text and it shows up fine in my browser, but I had assumed that creating a page in Word or Excel wouldn't allow for the same level of functionality and aesthetic that I've created with the original page in Dreamweaver.  I will go ahead and play with Word to see what can be achieved.  Thanks and sorry for the newbie question!

  • Server Side Includes and Divs

    I have a template (dwt) for my site with editable regions for
    menus. I want to use Server Side Includes for the menu, as not all
    the pages will have the same menu.
    I have designed the site template (and pages) with css and
    divs. The area for the SSI is a div of size 145x335. The menu which
    I want to put inside this div will be a div based menu. I havent
    had any luck displaying the Div from the SSI yet. I have been
    looking on Google for help, but not much luck. I can get the Div to
    appear but the formatting doesnt show up.
    Im putting the SSI code in where I want it on the page, but
    im not sure exactly which code to get rid of in the shtml file. I
    know I need to remove body, head parts etc
    My site template uses CSS stored on the document, not an
    external css file.
    Any ideas?

    > Im sure Ive not got it right yet!! My head wont work
    lately!
    Yes. It's not working well here, either.
    Create your template with the editable region. In it, have
    links to a) the
    general stylesheet for all the pages, and b) the general
    stylesheet for all
    of the includes (these don't really need to be separate
    files). Spawn a
    child page, drop in the desired include, and save that page
    as
    whocares.shtml.
    That's it....
    The incude files themselves can be names anything you want -
    I like the
    'monkeybutt' extension, e.g.,
    yourinclude.monkeybutt
    The include files can make reference to CSS selectors, but
    cannot have
    embedded CSS rules, or links to external CSS files.
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.dreamweavermx-templates.com
    - Template Triage!
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    http://www.macromedia.com/support/search/
    - Macromedia (MM) Technotes
    ==================
    "~Billy~" <[email protected]> wrote in
    message
    news:eq234v$eq6$[email protected]..
    > Ive made myself confused now! I need it spelling out to
    me!
    >
    > Ok, a template file (dwt) with its css as an external
    style sheet.
    >
    > Rest of the sites pages made from the template file.
    >
    > Next, the template has one editable region for a choce
    of 2 div based
    > menus to
    > be placed into. Place either of these div menus into the
    template editable
    > region by creating two seperate SHTML files - one for
    each menu with the
    > body/head removed(and with internal or external css?)
    >
    > Next put the SSI code into the body of the template
    where I want the SSI
    > to
    > appear.
    >
    > Im sure Ive not got it right yet!! My head wont work
    lately!
    >

  • "Server-side includes" equivalent in DW CC

    I am a long-time HTML coder, having been hand-writing HTML since the days of Mosaic.  However, I am a complete newbie with DreamWeaver CC.  I have gone through the entire "Bayside Beat" tutorial.
    I am used to using "server-side includes" to include common sections of code on all of my pages.  For example, I include this at the top of every body:
    <!--#include virtual="/inc/banner.inc" --><!--#include virtual="/inc/mainmenu.inc" --><!--#include virtual="/inc/sidebar.inc" -->
    and this at the end:
    <!--#include virtual="/inc/footer.inc" -->
    Following along with the "Bayside Beat" tutorial, I see how to copy those sections from one page to another.  However, what happens if I need to make a change in one of those sections?
    For example, if I were to add a 6th page, I would need to edit the menu, and then manually propogate that change to every page.  Or, next year, when I want to change the copyright to "2014", I again need to manually edit every page.
    Is there any way to say "this section is to be identical on every page that includes it, and automatically propogate any changes to all of those pages"?

    I can't remember when Adobe loused this up.  Probably in DW CS6.
    My workaround is to create my own SSI code in my Custom Snippets folder.  I have one for .shtml/.asp pages and another for .php pages.  One click inserts the code. 
    <!--#include virtual="includes/my-include-file.html" -->
    <?php require_once('includes/my-include-file.php'); ?>
    Once inserted, click on the include statement in code view and you'll see a small properties box where you can browse to the actual file or Edit the include file.  It takes a lot longer to explain than it does to do it.   Bottom line, it's quick and you don't need any 3rd party extensions.
    Nancy O.

  • Server-Side Includes in weblogic server 5.1

              Hi,
              I tried Server-Side Includes examples in weblogic server 5.1 thru .shtml file.
              I am able to load the .shtml file but its not loading the included servlet. But
              I am able to load the included servlet alone separately.
              Somebody can be assist me what I have to do?
              I am using WebApplication WAR structure for my application.
              ex: http://localhost:7001/esp/hellooWorld -- loading the servlet
              http://localhost:7001/esp/html/ServletInclude.shtml -- not loading servlet
              where 'esp' name of the WebApplication
              The .shtml file code is given below
              <html>
              <body>
              <servlet name=hellooWorld>
              </servlet>
              </body>
              </html>
              Looking forward for some help
              Thanks
              

              Your WebLogic doesn't know it's supposed to be doing server-side includes. Make
              sure you have .shtml registered/enabled - see the docs.
              Mike
              "Jyothi" <[email protected]> wrote:
              >
              >Hi Mike,
              >Thanks for your reply.
              >>What errors (if any) do you see in the log file?
              >Just coming up with blank screen. No errors reported in log file. Nothing
              >coming
              >in log file regarding the servlet.
              >>
              >>When you display the page in a browser, what does View -> Source show?
              >Just getting blank screen. If I see view source same source code coming
              >up. Here
              >is the view source when I view it from browser
              >**********************************************
              ><!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
              ><html>
              ><head>
              ><title>Including a servlet with SSI</title>
              ></head>
              >
              ><body
              > bgcolor="#FFFFFF"
              > link=#DB1260
              > vlink=#828282>
              >
              ><font face="Helvetica">
              >
              >
              ><p>
              ><servlet name=hellooWorld>
              ></servlet>
              >
              ></font>
              ></body>
              ></html>
              >*********************************************************
              >>Did you register the servlet?
              >Yes. I registered the servlet. Thats why if I load the servlet alone
              >I am getting
              >the output.
              >http://localhost:7001/esp/hellooWorld -> url used to load servlet alone
              >>
              >I hope this info helps to you to analyze my problem
              >
              >Thanks
              >Jyothi
              >>
              >>"Jyothi" <[email protected]> wrote:
              >>>
              >>>Hi,
              >>>I tried Server-Side Includes examples in weblogic server 5.1 thru .shtml
              >>>file.
              >>>I am able to load the .shtml file but its not loading the included
              >servlet.
              >>>But
              >>>I am able to load the included servlet alone separately.
              >>>Somebody can be assist me what I have to do?
              >>>I am using WebApplication WAR structure for my application.
              >>>ex: http://localhost:7001/esp/hellooWorld -- loading the servlet
              >>>http://localhost:7001/esp/html/ServletInclude.shtml -- not loading
              >servlet
              >>>
              >>>where 'esp' name of the WebApplication
              >>>
              >>>The .shtml file code is given below
              >>>-----------------------------------
              >>><html>
              >>><body>
              >>><servlet name=hellooWorld>
              >>></servlet>
              >>></body>
              >>></html>
              >>>--------------------------------------------------
              >>>
              >>>Looking forward for some help
              >>>
              >>>Thanks
              >>>
              >>>
              >>>
              >>>
              >>>
              >>
              >
              

  • Server-side includes in css

    I am trying to incorporate server-side includes for my nav.
    links. I created the website using css. I am able to preview the
    navigationals (with proper links when I hovered) with F12 iexlorer,
    but when I upload everything and view it from IE, Mozilla, etc.
    they aren't there. My left nav. is totally blank.
    I am very new to web making and learned what I could from
    internet sites. Here are examples of my ssi code:
    My index page has a php extension (index.php) and has this
    inserted for the include:
    <?php include("menu.html");?>
    menu.html looks like:
    <ul>
    <li><a href="index.php">Home</a></li>
    <li><a href="searchplans.php">Search Plans
    </a></li>
    <li><a href="modifydesign.php">Modify
    Design</a></li>
    <li><a href="designpricing.php">Design
    Pricing</a></li>
    <li><a href="purchaseplan.php">Purchase
    Plan</a></li>
    <li><a href="contactus.php">Contact
    Us</a></li>
    </ul>
    I know that my server supports ssi, because I previously
    created a very basic site (not using css) using shtm extensions and
    an includes folder. When I called them they said that they support
    php too, but thought it was a problem with my settings in
    Dreamweaver.
    If you have any advice, I would be very grateful. I am
    banging my head on this one.

    Be sure to upload menu.html to your server.
    HTH,
    Randy
    > <?php include("menu.html");?>

  • SSI Server Side Includes searchable?

    I'm creating a site that uses Server Side Includes to pull
    content into pages. The client wants to include a Search function
    to the site. My question is can a search function not only find the
    SSI pages but pull them up directly?
    Please see
    http://www.trainride.org/mtm_index.shtml
    The 2nd line of the bottom navigation are links that pull
    content into the page with server side includes. Is there a way to
    search and load the content pulled in by the server side includes?
    Any help would REALLY be appreciated.
    Thanks in advance!

    Melissa,
    I believe that the search engines create their indexes using
    spiders
    that walk through all of the browser links in your site. The
    content of
    your SSIs get embedded into your page on the server, so there
    is no
    actual link by the time the page gets to the browser.
    So, I think you need to add a hyperlink to your SSI pages
    some (maybe
    hidden) place in your site so the spiders will find them.
    HTH,
    Randy
    > I'm creating a site that uses Server Side Includes to
    pull content into pages.
    > The client wants to include a Search function to the
    site. My question is can a
    > search function not only find the SSI pages but pull
    them up directly?
    > Please see
    http://www.trainride.org/mtm_index.shtml
    > The 2nd line of the bottom navigation are links that
    pull content into the
    > page with server side includes. Is there a way to search
    and load the content
    > pulled in by the server side includes?

  • Server side include

    htaccess file code lets server parse server side include
    .shtml as .html with this:
    AddType text/html .html
    AddHandler server-parsed .html
    it makes me happy so i can continue using .html extensions on
    all pages.
    however, same server side include statement in .php pages is
    not recognized.
    what do i need to add to htaccess file so ssi in .php pages
    to be recognized??
    (not php code in an html page but pure php extension; i.e. i
    want to use the same ssi
    for header used in .html pages to be in .php pages.)
    browsed to find this answer but must not be using correct key
    words as have found every
    answer but this one.
    thanks.

    Hmmm... include() does not behave this way, the script will
    continue
    regardless. Be sure to have an appropriate include_path
    setting as well.
    Be warned that parse error in included file doesn't cause
    processing
    halting in PHP versions prior to PHP 4.3.5. Since this
    version, it does.
    http://www.php.net/manual/en/function.include.php
    John Waller escribió:
    > "thanks for the tip. for anyone who finds this thread,
    this works:
    > the include statement for a .php page:
    > <?php include("test.txt"); ?>"
    >
    >
    > Use the require() function instead of include(). Both
    handle includes
    > the same but handle errors differently.
    >
    > Include functions keep running when they encounter
    errors-not good for
    > the developer because you may not know anything is wrong
    until long
    > after you've written the script or the site has gone
    live.
    >
    > Require functions stop dead in their tracks until errors
    are fixed-which
    > is good for you the developer to know about. When
    require works you know
    > the code and the file names and paths are correct.
    >
    > Scripts should not continue executing if files are
    missing or misnamed
    > so require is preferred.
    >
    >
    http://www.w3schools.com/PHP/php_includes.asp
    >
    >
    http://www.tizag.com/phpT/require.php
    >

Maybe you are looking for